LoRaWAN node.saveSession (v 6.5.0) #1039
-
Hi, thank you for the new version! Can you please describe how the node.Savesession / restore is working now? Have added in the "LoRaWAN_Reference.ino" this block before the loop delay
get a "save success" - but after reset it looks like that will not restore more the session (new join in TTN console).
I think I do something wrong with new version... Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Please take a look at the persistence library to see how to save a session. You will see that you should not call |
Beta Was this translation helpful? Give feedback.
-
We are hoping that there should be some stability but please please check out the README in the LoRaWAN examples folder: https://github.com/jgromes/RadioLib/blob/master/examples/LoRaWAN/README.md. We'll figure out a way of incorporating release notes and copy them on to the wiki. It will need a few of us to deploy some devices that are left to run for a while before we can declare the API stable, but we are travelling hopeful. |
Beta Was this translation helpful? Give feedback.
-
I have quite the same problem. This program worked fine until 6.5.0 version :
I'm not sure to understand how to modify it and make it work again without having to rewrite all ? |
Beta Was this translation helpful? Give feedback.
Please take a look at the persistence library to see how to save a session. You will see that you should not call
saveSession()
anymore, but use thegetBufferNonces()
andgetBufferSession()
, each with some extra required logic, and you can restore the session withsetBufferNonces()
andsetBufferSession()
. But it's all explained in the code there.