6630f7fc07
Adding a reference implementation of the Non-Volatile Memory module needed to join any LoRaWAN network. This NVM is based on the SETTINGS subsys to store all the required key to join and communicate on a LoRaWAN network. Without proper NVM, one may experience errors when using OTAA to join the network, as the device may violate anti-replay protection (depending on the version of LoRaWAN). Signed-off-by: Giuliano Franchetto <giuliano.franchetto@intellinium.com>
24 lines
660 B
Plaintext
24 lines
660 B
Plaintext
# LoRaWAN Non Volatile Memory configuration options
|
|
|
|
# Copyright (c) 2022 Intellinium <giuliano.franchetto@intellinium.com>
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
choice LORAWAN_NVM
|
|
bool "LoRaWAN NVM backend"
|
|
default LORAWAN_NVM_SETTINGS if SETTINGS
|
|
default LORAWAN_NVM_NONE
|
|
|
|
config LORAWAN_NVM_NONE
|
|
bool "No NVM backend for LoRaWAN"
|
|
help
|
|
If this configuration is used, it is the responsibility of the
|
|
application to store and restore the DevNonce value each time
|
|
a OTAA join request is sent. This value should be used in the
|
|
join configuration directly.
|
|
|
|
config LORAWAN_NVM_SETTINGS
|
|
bool "Settings based NVM"
|
|
depends on SETTINGS
|
|
|
|
endchoice
|