Open cyclops1982 opened 2 years ago
We tell the lora lib to read the battery status from BatteryHelper::GetLoRaWanBattVal
over here.
This points to:
typedef struct lmh_callback_s
{
/**@brief Get the current battery level
* @retval value battery level ( 0: very low, 254: fully charged )
*/
uint8_t (*BoardGetBatteryLevel)(void);
Another example:
Received from device: This results in:
This is while the device is charging on solar power and is not plugged in. The value of the battery at this stage was around 3149 (which is low, so the 0% might be correct here)