How online status is determined
A device is considered online when Ruang IoT receives a recent heartbeat, status, or telemetry within the time threshold set by the server. The current production configuration uses a general threshold of 300 seconds.
Heartbeat
- Send heartbeats at regular intervals.
- Don't rely on the TCP connection as the only indicator.
- Include firmware or uptime information when needed.
Acknowledgement
After receiving a command, the device sends its actual status. This helps you tell whether a command has not been received yet, failed to apply, or succeeded.
When a device is offline
- Check the Wi-Fi and the power supply.
- Check the Project ID, Device ID, and topic.
- Check the server listener and the MQTT broker.
- Look at the time of the last telemetry in Data History.