MqttClientOptions
Name |
Type |
Description |
|
Sets the time in seconds after which the client will stop waiting for a PUBACK, PUBREC or PUBCOMP packet from the server in response to a packet it has sent. The default value of this property is -1 which indicates that the client should wait an unlimited time for the server's acknowledgement. |
|
|
Set if the MQTT client must generate clientId automatically (default is true) |
|
|
Set if the MQTT client must handle PINGREQ automatically (default is true) |
|
|
Set to start with a clean session (or not) |
|
|
Set the client identifier |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
Do the same thing as link (int)}. Use it instead. |
|
- |
||
|
Set the keep alive interval in seconds |
|
|
- |
|
|
- |
|
|
Set max count of unacknowledged messages |
|
|
Set max MQTT message size |
|
|
- |
|
|
Set the password |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
- |
||
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
Set the username |
|
|
Set if will information are provided on connection |
|
|
Set the content of the will message |
|
|
Set the QoS level for the will message |
|
|
Set if the will message must be retained |
|
|
Set the topic on which the will message will be published |
MqttServerOptions
Name |
Type |
Description |
|
- |
|
|
Set if clientid should be auto-generated when it's "zero-bytes" |
|
- |
||
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
- |
||
|
- |
|
|
Set max MQTT message size |
|
|
- |
|
|
- |
|
- |
||
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
- |
||
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
Set the timeout on CONNECT packet |
|
|
- |
|
|
- |
|
|
- |