Per @altishchenko in #560, we need a way to provide proper data for battery level in the DeviceStatusAns message.
The proposed approach (from here):
LMIC_setBatteryLevel()
(and LMIC_getBatteryLevel()
) in header file (note slightly different name to os_getBattLevel()
LMIC_setBatteryLevel()
after a re-initialization. I'm avoiding the question of "what happens at LMIC_reset()
", because it's used internally as well as externally -- sorting that out requires some analysis.os_getBattLevel()
so that it returns the private field. (The change to LMIC initialization ensures that behavior is unchanged for existing applications.)Footprint impact of this would be minimal -- a byte of RAM and a few bytes of code for init and the change to os_getBattLevel()
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4