send MQTT message(a,b,c,d,e)


This function sends a message to MQTT server alias a, using topic b and payload c. Returns true for success.

Parameter Description

Parameter

Description

a

The MQTT alias.

b

The topic to send to.

c

The data to be sent.

d

The encoding of 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.