GET connected state


#1

Using the list devices api call here: https://hologram.io/docs/reference/cloud/http/#/reference/device-management/devices/list-devices

My hologram.io dashboard shows device state as “live” and “connected”. I show “connected” when I have a PPP data session up on one of the modems. When I use the API call above, all my devices come back with state “live”. Is this by design? How do I query the same “connected” status as shown on my dashboard?


#2

Hey tmcolby,

The state parameter you are referring to will only show you the state from the point of view of our database (basically live, paused, or deactivated). If you want to see the connection status you’d have to look the lastsession object in the same call. lastsession has an active field. This will show as true if the device is in a data session and false if it isn’t.


#3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.