fixed
API - Fixed battery history before provided time range
January 13th, 2024
π Fixes
Battery History Before Provided Time Range
When using the GET /devices/{serialNumber}/battery
endpoint with both query parameters start
and end
provided, the response could include battery history before the provided time range. This has now been fixed.
The issue was present only when using the start
and end
parameters together and with relatively low-time ranges (e.g., 10 hours). It was a fallback mechanism to ensure that the response always includes the latest battery status. The fallback mechanism has now been removed. You can increase the time range or use the latest battery endpoint to fetch the latest battery status.