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

Reading voltage level using AT%XVBAT.

Hi, 

I am trying to get the voltage level of the battery using the AT_command AT%XVBAT which I tested using the at_client sample. I tried integrating it with my current code but I didnt get any values. Which goes something like that.

#define AT_BATTERY        "%XVBAT"

char battery[32] = {0};

 at_cmd_write(AT_BATTERY, NULL, sizeof(battery), NULL);

Related