arduino-ble-gadget icon indicating copy to clipboard operation
arduino-ble-gadget copied to clipboard

Send Battery Level to Application

Open Enoch23 opened this issue 4 years ago • 3 comments

Is it possible to send a battery level of the device to the application?

I was thinking it would be something of the sort like: gadgetBle.writeBattery(batteryLevel); but I cant find anything in the "Sensirion_GadgetBle_Lib.h". Is this feature implemented?

The SHT31 smart gadget was able to do so according to this post: https://www.soselectronic.com/articles/sos-supplier-of-solution/temperature-measurement-with-sht31-smart-gadget-2330

P.S. I hope this is the correct way of asking. Or how does one go about feature requests here on GitHub?

Enoch23 avatar Jul 30 '21 08:07 Enoch23

Hi Enoch23

Thank you for your suggestion. Yes, the Smart Gadgets do have a Battery Service to provide battery level information. The arduino-ble-gadget library on the other hand does not provide this functionality (yet).

I'll add this to our backlog as a future improvement.

Best regards Bjoern

P.S. Yes, this is the right channel and way to ask about stuff like this.

MBjoern avatar Jul 30 '21 14:07 MBjoern

Added support for this earlier today in #17, however I'm not sure how likely it is the app will be updated to work the same way or if there are changes necessary.

steveatinfincia avatar Jun 03 '22 18:06 steveatinfincia

You are correct that we currently will not support any battery service in MyAmbience and therefore we will not add it to the ble gadget library yet.

We will definitely consider this in a future update and add the service here as well as soon as it is supported.

psachs avatar Oct 14 '22 08:10 psachs

Battery service is now implemented and will be part of the next release

psachs avatar Jan 11 '23 08:01 psachs