Payload property
Gets or sets the payload of the will message. Read/write. Variant.
Syntax
msg
.Payload
where
msg
- is an MQTTWillMessage object.
TIP:
This property's data type is Variant, however, it can only be assigned an array of byte or string.
Example
msg.PayloadFormat = MqttPayloadCharacter msg.payload = "This is the string."
Provide Feedback