All device state in a single request API

Easiest way to read data with polling

Lefteris Chatzipetrou

Last Update 7 bulan yang lalu

In case your use case is simple enough that polling for device state every 5-15 minutes is enough, you can skip the real-time API and use our new HTTP API on the device servers directly.

The API will return the state of all the devices you have access to and are connected to the server in a single request.

curl
"https://node0.hamsystems.eu/device_state.php?api_key=API_KEY"
On how to interpret the device state, look at the HTTP API article. Change the node0.hamsystems.eu part to your device server if different.

You can get the device server by using the get_user_devices.php API. In case your devices are distributed among servers then you need to make one request per server, but usually that is not necessary.

Was this article helpful?

0 out of 0 liked this article

Still need help? Message Us