mqtt.receive event
The mqtt.receive event listens on the specified topic and is executed 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, wildcard + and # fields 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 that initiated this trigger. |
| $(event.payload) | Binary | The payload sent in the publish. If the payload can be converted to a string (from binary or hexadecimal representation), the payload will be converted to a string. |