hello there i want to add battery status in my advertisement packet.is adc required for battery level? can you give me links for adding battery status in advertisement packet.
hello there i want to add battery status in my advertisement packet.is adc required for battery level? can you give me links for adding battery status in advertisement packet.
most BLE demo have this implement. At least, I useed HTS, it has already a battery service, you just need to swtch the simulate test to a real test using the ADC converter.
static __INLINE uint8_t battery_level_in_percent(const uint16_t mvolts)
You can find this function in SDK-10. I don't know when this function support began.
static __INLINE uint8_t battery_level_in_percent(const uint16_t mvolts)
You can find this function in SDK-10. I don't know when this function support began.