Offline event at mDash endpoint


I was looking at the docs for catching notifications. It works great when a device goes online/updates, but it never fires the offline event.

The only way I have received an “offline” message, is when I reset, so before coming online y fires the “offline” event

The docs states: “When a device disconnects, this usually happens in a non-clean way (e.g. device power-off). mDash sends TCP keep-alive every 20 seconds, and closes the connection after 3 failed keep-alives. When a connection is closed, mDash sends DEVICE_ID message to the db/offline topic. Disconnected device automatically goes to step 1 (reconnects)”

But this offline event is never received. Is this normal? We are using the /api/v2/notify endpoint

1 Like