Sensorclouds Docs
Devices

Device Status

How Sensorclouds detects and displays device online/offline status

Sensorclouds uses two complementary mechanisms to track device connectivity status.

Status Types

StatusIndicatorMeaning
ONLINEGreen animated pulseDevice is actively connected
OFFLINERed dotDevice has disconnected or lost connection
UNKNOWNGray dotNo status information available

Image placeholder: Screenshot showing device status indicators (Online, Offline, Never Connected)

MQTT Last Will and Testament (LWT)

The primary status mechanism uses MQTT's built-in LWT feature:

  1. When connecting, the device configures a Will Message with payload {"status": "offline"}
  2. On successful connection, the device publishes {"status": "online"} to its status topic
  3. If the device disconnects unexpectedly, the broker automatically publishes the Will Message
tenant/{tenantId}/app/{applicationId}/device/{deviceToken}/status
Device → PlatformDevice status messages (online/offline)

Heartbeat System

A secondary detection mechanism using heartbeat tracking:

  1. Every telemetry message acts as a heartbeat
  2. A heartbeat timer is set for the device on each message
  3. When the TTL expires (no messages received within the timeout), the device is marked as OFFLINE
  4. This provides offline detection independent of MQTT LWT — useful when LWT is not configured

Dashboard Indicators

  • Device lists show colored status dots next to each device name
  • The tenant home dashboard displays aggregate online/offline counts
  • Application overview pages show device status distribution

For the most reliable status tracking, always configure MQTT LWT on your devices. See Connecting Your Device for setup instructions.

On this page