* NOTE: This is experimental. Saving session to EEPROM seems like a good idea at first,
* to avoid joining every time the Ampel is started.
* But many other infos are needed too (e.g. a counter), and it wouldn't be wise
* to save the whole configuration every time data is sent via EEPROM.
*
* config::lora_session_saved can be set to false, and the Ampel will try to join again next time.
*/
config::lora_session_saved=true;
config::lora_netid=netid;
config::lora_devaddr=devaddr;
memcpy(config::lorawan_nwk_key,nwkKey,16);
memcpy(config::lorawan_art_key,artKey,16);
config::save();
//NOTE: Saving session to EEPROM seems like a good idea at first, but unfortunately: too much info is needed, and a counter would need to be save every single time data is sent.