arduino-device-lib
arduino-device-lib copied to clipboard
Should the examples be updated to deal with expired sessions
As far I can see, the example code only tries to join on setup()
but if the session expires (i.e. as in the case of the V2->V3 migration), the node would not be able to realize and would keep sending messages that don't arrive anywhere.
Yes we indeed have a problem here. I was hoping that the RN2483 had LinkCheck enabled by default, but apparently not:
In other stacks like LMiC the examples also disabled LinkCheck, and it was up to the user to enable ADR and LinkCheck: https://github.com/matthijskooijman/arduino-lmic/blob/master/examples/ttn-otaa/ttn-otaa.ino#L93
This is therefore a wider topic than just the arduino device lib.
Personally I have many devices out in the field using LMiC, but I believe I enabled LinkCheck and ADR on them. And hopefully that will cause a re-join.