WillMessage Property
The message that the server should publish in the event of an ungraceful disconnection.
Data Type
StringDefault Value
""Remarks
This property may be set before calling Connect to specify to the server a message that should be published on WillTopic if the connection is closed ungracefully.
Note that the WillMessage will only be sent to the server if WillTopic is set.
Refer to WillTopic for more information about MQTT Will functionality.