WillMessage property

Gets the will message object. Read-only.
Syntax
Set
willMsg
=
connOption
.
WillMessage
where
willMsg
- is the name of an MQTTWillMessage object or an expression that evaluates to an MQTTWillMessage object.
connOption
- is an MQTTConnectOption object created by the MQTTFactory object's method
CreateConnectOption
.
Example
Dim willMsg As MQTTWillMessage Set willMsg = connOption.WillMessage willMsg.PayloadFormat = MqttPayloadCharacter willMsg.contenttype = "String" willMsg.payload = "This is the will message."
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal