-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Description
Is your feature request related to a problem? Please describe.
I want to deep sleep on an nRF52840 and also turn off power to my LoRa module. After waking up from deep sleep, I'd then re-power the LoRa module, restore the LoRaWAN to the pre-reset state (so I don't need to keep rejoining) and then continue to transmit data. There are others requiring/using this feature as seen here Lora-net/LoRaMac-node#678
Describe the solution you'd like
The backend module used by Zephyr already has example application to do this (look at loramac-node/src/apps/LoRaMac/common/NvmCtxMgmt[.c/.h]), its however needs to be made more generic. I for instance want to use these in conjunction with the flash drivers ( flash_write() and flash_read() ).
Describe alternatives you've considered
Alternatively, and what I was actually trying, is insight into how I #include <LoRaMac.h>. This would allow the ability to reach the factions required to get the internal structures that can be mem copied elsewhere. This method seems to be frowned upon judging from #25956