Open Javieral95 opened 4 months ago
I have the same problem and cant set the frame counter as in V1: setFCU please, can you implement the function also in V2? I want to use MKR1310 with TPL5110 sleep timer, store the session keys before sleep and set it after waking up. Thank you
Issue:
After updating from version 1 (MKRWAN) to version 2 (MKRWAN_V2) of the LoRaWAN library in a MKRWAN1310 Arduino board. I've encountered difficulties in storing OTAA keys in memory and retrieving the message count.
Expected Behavior:
In the previous version (V1), I was able to successfully store OTAA keys in memory and retrieve the message count using appropriate functions. However, after updating to V2, the OTAA keys are being stored incorrectly, and I couldn't find a function capable of retrieving the message count.
Update Framecounter
In Version 1 I can update the frame counter.
Save Keys
And, in version V1, I can save the keys too:
In version V2 I don`t know why but the values got from this functions returns strange values.
Why this?
To enhance device connectivity efficiency, I propose implementing a mechanism to store negotiated OTAA keys in non-volatile memory after successful join, allowing subsequent ABP joins using the stored keys, thus avoiding repetitive OTAA negotiations.
Thanks for all!!!