Skip to main content
Documentation v2.0
Device status/docs/mqtt/device-status

MQTT

Stable

Device status

Understand heartbeats, online status, acknowledgements, and the offline timeout.

On this page4 sections

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

  1. Check the Wi-Fi and the power supply.
  2. Check the Project ID, Device ID, and topic.
  3. Check the server listener and the MQTT broker.
  4. Look at the time of the last telemetry in Data History.

Documentation feedback

Was this article helpful?

Documentation search

What do you want to learn?

Type at least two characters to search the documentation.
Code copied.