Merge pull request #13384 from jia200x/gnrc_lorawan_fix
examples/gnrc_lorawan: set RX2 DR to 3 only for ABP
This commit is contained in:
commit
b0df1c57ce
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user