1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

examples/lorawan: disable loramac state persistence on EEPROM

The code is kept but disabled by default. A comment explains how to avoid issues when enabling it
This commit is contained in:
Alexandre Abadie 2022-04-20 18:21:47 +02:00
parent 7bad517360
commit 8b7a8055c4
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -44,7 +44,13 @@ USEPKG += semtech-loramac
USEMODULE += $(DRIVER)
USEMODULE += fmt
FEATURES_OPTIONAL += periph_rtc
FEATURES_OPTIONAL += periph_eeprom
# Uncomment the following line to enable Loramac stack state persistence on EEPROM.
# Make sure the EEPROM is erased before enabling this and when flashing a board
# with an EEPROM the first time. If the board already contains a previous Loramac state
# in its EEPROM that is not corresponding to your LoRaWAN application settings,
# joining a network will fail.
# FEATURES_OPTIONAL += periph_eeprom
CFLAGS += -DSEND_PERIOD_S=$(SEND_PERIOD_S)
ifeq (otaa,$(ACTIVATION_MODE))