CleanStart property

Gets whether clean start is enabled or sets whether to enable clean start. Read/write. Boolean.
Syntax
connOption
.
CleanStart
where
connOption
- is an MQTTConnectOption object created by the MQTTFactory object's method
CreateConnectOption
.
Default value
If this property is omitted, it will use its default value, which is
True
, meaning clean start is enabled.
When CleanStart is set to 1, the client and server must discard any existing sessions and start a new one. CleanSession=TRUE in MQTT 3 is the same as SessionExpiryInterval=0 (or absent) and CleanStart=true in MQTT 5.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal