improved
API - Reduced amount of data from battery endpoints
October 25th, 2021
✨ Improvements
Battery is reported to the cloud per each sample. The battery level of a device however does not change that often.
We are therefore updating the API to only provide battery samples when there is a change in battery level.
The response format will remain the same.
GET /v1/devices/{serialNumber}/battery
GET /v1/devices/{serialNumber}/latest-battery