clariusdev / mobileapi

Android API Allowing IPC with the Clarius App
https://www.clarius.com
BSD 3-Clause "New" or "Revised" License
12 stars 4 forks source link

Feature Request: Show probe battery status via API #15

Closed nnaskov closed 2 years ago

nnaskov commented 2 years ago

Describe the feature you'd like to request

In our app, we may need to use the probe for a long time in continuous manner. This means that the device may be running low on battery.

We want to monitor the battery level and alert the user if battery is low, to change it before starting a scan (to avoid the device disconnecting in the middle).

Describe the solution you'd like

An API endpoint to retrieve the current battery level (ideally in percentage).

clariusk commented 2 years ago

thanks! we'll add to the feature request list for the api

clariusk commented 2 years ago

actually, you can already get this info through the ProbeInfo Parcelable https://github.com/clariusdev/mobileapi/blob/master/mobileapi/src/main/java/me/clarius/mobileapi/ProbeInfo.java