diff --git a/examples/lorawan/Makefile b/examples/lorawan/Makefile index 95e1e09b28..8265c73eee 100644 --- a/examples/lorawan/Makefile +++ b/examples/lorawan/Makefile @@ -17,7 +17,7 @@ APPKEY ?= 00000000000000000000000000000000 DRIVER ?= sx1276 # Default region is Europe and default band is 868MHz -REGION ?= EU868 +LORA_REGION ?= EU868 # Include the Semtech-loramac package USEPKG += semtech-loramac @@ -26,9 +26,7 @@ USEMODULE += $(DRIVER) USEMODULE += fmt FEATURES_REQUIRED += periph_rtc -CFLAGS += -DREGION_$(REGION) CFLAGS += -DDEVEUI=\"$(DEVEUI)\" -DAPPEUI=\"$(APPEUI)\" -DAPPKEY=\"$(APPKEY)\" -CFLAGS += -DLORAMAC_ACTIVE_REGION=LORAMAC_REGION_$(REGION) # Comment this out to disable code in RIOT that does safety checking # which is not needed in a production environment but helps in the diff --git a/examples/lorawan/README.md b/examples/lorawan/README.md index f9e6f9679d..ef6401e2e9 100644 --- a/examples/lorawan/README.md +++ b/examples/lorawan/README.md @@ -18,12 +18,12 @@ Simply build and flash the application for a ST B-L072Z-LRWAN1 board: make flash term -Use the `BOARD`, `DRIVER` and `REGION` make variables to adapt the application +Use the `BOARD`, `DRIVER` and `LORA_REGION` make variables to adapt the application to your hardware setup and region of use: - `BOARD` can be one of the nucleo-64 boards - `DRIVER` can be either `sx1276` or `sx1272` -- `REGION` can be `EU868`, `US915`, etc (see LoRaWAN regional parameters for +- `LORA_REGION` can be `EU868`, `US915`, etc (see LoRaWAN regional parameters for details). ST Nucleo-64 can be used with mbed LoRa shields: there's one based on