diff --git a/examples/gnrc_lorawan/Makefile b/examples/gnrc_lorawan/Makefile index 6834583cd0..e26cf131ff 100644 --- a/examples/gnrc_lorawan/Makefile +++ b/examples/gnrc_lorawan/Makefile @@ -37,10 +37,12 @@ CFLAGS += -DLORAMAC_APP_EUI_DEFAULT=\{0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\, CFLAGS += -DLORAMAC_DEV_EUI_DEFAULT=\{0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\} # Uncomment and replace with proper keys for joining with ABP +# For TTN, It's necessary to set the RX2 DR to 3 # NOTE: This values will be overriten in case of OTAA. #CFLAGS += -DLORAMAC_DEV_ADDR_DEFAULT=\{0x00\,0x00\,0x00\,0x00\} #CFLAGS += -DLORAMAC_NWK_SKEY_DEFAULT=\{0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\} #CFLAGS += -DLORAMAC_APP_SKEY_DEFAULT=\{0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\,0x00\} +#CFLAGS += -DLORAMAC_DEFAULT_RX2_DR=LORAMAC_DR_3 # Comment/uncomment as necessary CFLAGS += -DLORAMAC_DEFAULT_JOIN_PROCEDURE=LORAMAC_JOIN_OTAA @@ -51,9 +53,6 @@ CFLAGS += -DLORAMAC_DEFAULT_JOIN_PROCEDURE=LORAMAC_JOIN_OTAA # Note this value is also used for the OTAA. #CFLAGS += -DLORAMAC_DEFAULT_DR=LORAMAC_DR_5 -# Set the default RX2 datarate to DR3 (used by The Things Network) -CFLAGS += -DLORAMAC_DEFAULT_RX2_DR=LORAMAC_DR_3 - # Set default messages to unconfirmable CFLAGS += -DLORAMAC_DEFAULT_TX_MODE=LORAMAC_TX_CNF