...
Code Block | ||
---|---|---|
| ||
/iot mqtt subscriptions recv print 0 broker=broker topic="my/test/topic" data="test-message" time=2023-05-22 16:57:00 |
Info |
---|
Received message list is limited to 1024 entries. After which, older entries will get overwritten with the new ones. |
To clear stored messages, issue the command:
...
The script can use $msgData and $msgTopic variables. $msgData defines the MQTT message that was published and $msgTopic defines the MQTT topic, where the message was published. Both variables are automatically generated when a new message appears.
Info |
---|
|
After you publish a new MQTT message to the subscribed topic, a new log entry should appear:
...