Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please define unit for smtc_modem_hal_get_battery_level #78

Open
disk91 opened this issue Aug 4, 2024 · 1 comment
Open

Please define unit for smtc_modem_hal_get_battery_level #78

disk91 opened this issue Aug 4, 2024 · 1 comment

Comments

@disk91
Copy link

disk91 commented Aug 4, 2024

The documentation says:

/**
 * @brief Return the battery level
 *
 * @return uint8_t Battery level for lorawan stack
 */
uint8_t smtc_modem_hal_get_battery_level( void );
``` 

What is the unit ? assuming not Volt and not mVolt in an uint8. What can it be ? %age ?
@opeyrard
Copy link

Hi,
It is compliant with the battery level defined in the LoRaWAN specification.
image
This is documented in line 440 of "smtc_modem_hal.c"
This will be moved to the *.h for the next coming release.
Many thanks,
Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants