When provisioning the device during runtime (e.g. through serial, WiFi or Bluetooth), we need to be able to set the AppEUI and AppKey, without having to join, or let it reset before join.
As part of this change bool join(const byte appEui[8], const byte appKey[16]) should first call provision(const byte appEui[8], const byte appKey[16]) and then bool join()
When provisioning the device during runtime (e.g. through serial, WiFi or Bluetooth), we need to be able to set the
AppEUI
andAppKey
, without having to join, or let it reset before join.Proposed API:
This method does a
mac set appeui
,mac set deveui
andmac save
, see command reference.Then, you can call just
join()
insetup()
orloop()
, that uses the AppEUI and AppKey from memory, and thus only takes retries, as in #39