This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

battery level service on Custom Profile

Hi

I'm trying to implement battery level on my custom profile. So I used battery.c and ble_bas.c files for the battery service from nodic's sdk nrf51822_v4.4.1.31827. I've made the modifications in main.c and attached the file below (MODIFICATIONS FOR BATTERY SERVICE ONLY)

But the issue is battery level always reports 100percent (ie; 64 as value in service) even-though I varied the input power between 2.5-3.6v on P1 header

Any thoughts??

Regards HPC

addition_in_main.c

Related