mqtt.receive Event
The mqtt.receive event listens on the specified topic and executes when a message is published to the specified topic.
Form
Do not use reserved topics api and apiz. For more information on reserved topics, see MQTT Interface.
Parameters
Name |
Type |
Required |
Description |
---|---|---|---|
Topic |
String |
Yes |
The topic must match the standard MQTT topic format. Wildcards plus (+ and hash (#) are permitted. |
Event variables
Name |
Type |
Description |
---|---|---|
$(event.topic) |
String |
The topic that was published to. |
$(event.from) |
String |
The identifier representing the email address or thing key associated with the connection that sent the message. |
$(event.ts) |
Timestamp |
The timestamp when the message was published. |
$(event.payload) |
Binary |
The payload sent in the message published to the topic. |