State¶
Topic: <baseTopic>/state/<deviceId>
The data logger publishes the current state on a dedicated topic with a retained message.
The interval that the state is published is controlled by the MQTTStateInterval setting.
Topic Example: cs/v2/state/ABCD-EFGH-1234
Retained: True
Online Message¶
{
"clientID": "CR6_945",
"state": "online"
}
Offline message¶
{
"clientId":"GS33-ERBH-LA75",
"state":"offline",
"reason":"Program requested disconnect"
}
Watchdog Event¶
This topic publishes a message when the data logger experiences a watchdog reset
Topic Example: cs/v2/state/ABCD-EFGH-1234/watchdogEvent
{
"count": "1",
"file": "WatchdogInfo.txt"
}