MQTT Client
This module contains the MQTT client code. It defines classes for the MQTT Client and manages the connection to the MQTT broker.
The MQTT client is a singleton.
MQTT version 3.1.1 as documented https://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html
QoS2 not supported - only QoS0 or 1
Sessions are clean - i.e. no context saved between sessions.
Optional client disconnects are not implemented. Unless an error occurs or the broker terminates the session the session remains open until power is removed!
The same logic applies to subscriptions - unsubscribe is not implemented.
Authentication is not implemented.
Subscriptions are static. The subscription list is loaded by the client at instantiation and is immutable.
| Author | |
| Paul Redhead |
| Class | |
MQTT Client |
| Class | |
MQTT Control Packet Out |
| Constant | MQTT |
Default MQTT broker port number This is the default port number for the MQTT broker. It can be overridden in the configuration file. |
| Constant | _ACK |
Undocumented |
| Constant | _AUTH |
Undocumented |
| Constant | _CONNACK |
Undocumented |
| Constant | _CONNECT |
Undocumented |
| Constant | _DISCONNECT |
Undocumented |
| Constant | _KEEP |
Undocumented |
| Constant | _MAX |
Undocumented |
| Constant | _MAX |
Undocumented |
| Constant | _PING |
Undocumented |
| Constant | _PINGREQ |
Undocumented |
| Constant | _PINGRESP |
Undocumented |
| Constant | _PUBACK |
Undocumented |
| Constant | _PUBCOMP |
Undocumented |
| Constant | _PUBLISH |
Undocumented |
| Constant | _PUBREC |
Undocumented |
| Constant | _PUBREL |
Undocumented |
| Constant | _REOPEN |
Undocumented |
| Constant | _SUBACK |
Undocumented |
| Constant | _SUBSCRIBE |
Undocumented |
| Constant | _UNSUBACK |
Undocumented |
| Constant | _UNSUBSCRIBE |
Undocumented |
Default MQTT broker port number This is the default port number for the MQTT broker. It can be overridden in the configuration file.
| Value |
|