The MQTT broker options.
### BrokerOptions(): [BrokerOptions](#brokeroptions)
### automaticDisconnect(disconnect): [BrokerOptions](#brokeroptions)
Whether the MQTT broker should be automatically disconnected when all topics are unsubscribed or not.
| Parameter | Type | Description |
| --------------- | -------- | -------- |
| disconnect | boolean | |
### timeout(timeout): [BrokerOptions](#brokeroptions)
timeout of the mqtt broker.
| Parameter | Type | Description |
| --------------- | -------- | -------- |
| timeout | float | The timeout in seconds |
### useWs(use_ws): [BrokerOptions](#brokeroptions)
Defines if websockets should be used (true) or TCP (false)
| Parameter | Type | Description |
| --------------- | -------- | -------- |
| use_ws | boolean | If we use web sockets or not |
### port(port): [BrokerOptions](#brokeroptions)
Defines the port to be used for the MQTT connection
| Parameter | Type | Description |
| --------------- | -------- | -------- |
| port | int | The port we use to conenct |
### maxReconnectionAttempts(max_reconnection_attempts): [BrokerOptions](#brokeroptions)
Defines the maximum reconnection attempts before it returns an error
| Parameter | Type | Description |
| --------------- | -------- | -------- |
| max_reconnection_attempts | long | The maximum attempts |