Question: Use ADR with deep sleep (ESP32) #615
-
Hello folks, i am using an ESP32 on a TTGO T-Beam Board. Which values from the LMIC struct i have to safe to the power down resistent RTC ram and restore after wake up (it's a real controller reset here)? I use the Is the Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Save&restore both |
Beta Was this translation helpful? Give feedback.
-
Please look at mcci-catena/arduino-lorawan#150 which adds full support for saving/restoring the LMIC state. I've tested it with US915. If I get a chance to fix channel shuffling, it will need one more thing (the channel-shuffle state) to be complete. But it's a decent (C++) reference for saving/restoring state. |
Beta Was this translation helpful? Give feedback.
Save&restore both
adrAckReq
andadrTxPow
;adrTxPow
is the actual tx power limit set by the network,adrChanged
is a flag to reset the adr counter (no need to save it).