MKR 1310, how to perform lowpower mode and store 'Device Address' between joins?

Hi,

OTAA best practice: how to not join every time?

JOin first time and then use 1e time OTAA join + set counter to 1
store keys

2e time ABP join (read keys from memory) + counter +1
3e time same
.
.
xx time start all over OTAA join (+ store new keys) + counter start at 0

We want to use the new MKR1310 to be able to run our device for a long time using batteries and also to be able to store the session keys, before deep sleep(power off) so we can avoid
OTAA joins everytime the device wakes up.

What I can see there is no sample code available yet that show how this can be achieved.

Any help out there ?

  • Lowpower operation
  • Store/read sessions keys and device adress in the 1310 flash memory ?

The sales pitch states, but where is the sample code ?

" Data logging and other OTA (Over The Air) functions are now possible since the inclusion of the on board 2MByte Flash. This new exciting feature will let you transfer configuration files from the infrastructure onto the board, create your own scripting commands, or simply store data locally to send it whenever the connectivity is best. Whilst the MKR WAN 1310’s crypto chip adds further security by storing credentials & certificates in the embedded secure element."