I tried to get the battery level with the following command
ret=RIL_GetPowerSupply(bat_cap,bat_vol);
APP_DEBUG("<RIL_GetPowerSupply=%d -->\r\n", ret);
But whenever I use this command, the module hangs
I tried to get the battery level with the following command
ret=RIL_GetPowerSupply(bat_cap,bat_vol);
APP_DEBUG("<RIL_GetPowerSupply=%d -->\r\n", ret);
But whenever I use this command, the module hangs
Hi
I think there is something wrong with your parameters, please refer to:
u32 bat_cap,bat_vol;
ret=RIL_GetPowerSupply(&bat_cap,&bat_vol);
APP_DEBUG(ā<RIL_GetPowerSupply=%d ā \r\nā, ret);