cyclops1982 / RAKTracker

Example code that get's a distance measure and sends it via lora. First implementation. Very basic.
0 stars 0 forks source link

LoRa Status mesages are incorrect #4

Open cyclops1982 opened 2 years ago

cyclops1982 commented 2 years ago

Received from device: image This results in:

Battery level: 0%
Battery level unavailable: false
External power source: true
Margin: 14

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)

cyclops1982 commented 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);
cyclops1982 commented 8 months ago

Another example: image