CleanSession property
This is MQTT 3.1 version property. Gets whether clean session is enabled or sets whether to enable clean session. Read/write. Boolean.
Syntax
connOption
.CleanSession
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 session is enabled.When establishing a connection to the broker, clients can enable or disable a persistent session by setting the value of the CleanSession property. When this property is set to True, the client explicitly requests a non-persistent session.
Provide Feedback