diff --git a/sketch/lorawan/lorawan.ino b/sketch/lorawan/lorawan.ino index daef29172..14978415a 100644 --- a/sketch/lorawan/lorawan.ino +++ b/sketch/lorawan/lorawan.ino @@ -163,6 +163,7 @@ void setup() { Serial.println("=== RAK4631 LoRaWAN class A test ==="); + /* Set the LoRaWAN region */ int ret = lorawan_set_region(LORAWAN_REGION_EU868); if (ret) { Serial.print("Failed to set LoRaWAN region: "); diff --git a/variants/rak4631_nrf52840/rak4631_nrf52840.conf b/variants/rak4631_nrf52840/rak4631_nrf52840.conf index bb557390c..aa67273e6 100644 --- a/variants/rak4631_nrf52840/rak4631_nrf52840.conf +++ b/variants/rak4631_nrf52840/rak4631_nrf52840.conf @@ -53,7 +53,15 @@ CONFIG_COUNTER=y CONFIG_LORA=y CONFIG_LORAWAN=y +CONFIG_LORAWAN_REGION_AS923=y +CONFIG_LORAWAN_REGION_AU915=y +CONFIG_LORAWAN_REGION_CN470=y +CONFIG_LORAWAN_REGION_EU433=y CONFIG_LORAWAN_REGION_EU868=y +CONFIG_LORAWAN_REGION_KR920=y +CONFIG_LORAWAN_REGION_IN865=y +CONFIG_LORAWAN_REGION_US915=y +CONFIG_LORAWAN_REGION_RU864=y CONFIG_LORAWAN_SERVICES=n CONFIG_LORAWAN_NVM_SETTINGS=y