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);