Bolt Device Status
Unified Timestamp Handling for Device Status
-
The API provides a valid
status_record_timefor both online and offline devices. - When the device is online, the API retrieves the latest
"lastaliveat"timestamp from Redis. -
When the device is offline, the API now includes the
"lastdeadat"timestamp from Redis.
Command : isOnline
Parameters
- deviceName: The name of the Bolt device you want to get status.
Example: - https://cloud.boltiot.com/remote/44b2de6b-7e68-40e7-a27f-814b58afe008/isOnline?&deviceName=BOLT8795377
- Will return the device status along with the time when the device was online/offline respectively. It returns time in UTC standard.
- Browser output:
{"success": "1", "value": "online", "time":"Sun 2018-05-06 08:14:43 UTC"} or
{"success": "1", "value": "offline", "time":"Sun 2018-05-06 08:14:43 UTC"}