This function sends a message to MQTT server alias a, using topic b and payload c. Returns true on success.
Parameters
Parameter | Description |
|---|---|
a | The MQTT alias. |
b | The topic to send to. |
c | The data to be sent. |
d | The encoding for the payload c. Note: You can use the three dots for selection. |
e | The quality of service (1-3, where 1=At most once, 2=At least once, 3=Exactly once). |
System variables
In MQTT version 5, you can use system variables of the form MQTT_<keyname> to pass user properties (key, value). See also MQTT_SYS_CONTENTTYPE and MQTT_SYS_CORRELATIONDATA.