mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
net/lorawan : Move 'LORAMAC_DEV_ADDR_DEFAULT' to 'CONFIG_'
This commit is contained in:
parent
50e979c600
commit
9e626f471a
@ -32,7 +32,7 @@ CFLAGS += -DCONFIG_LORAMAC_DEV_EUI_DEFAULT=\"CCCCCCCCCCCCCCCC\"
|
||||
# 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=\"00000000\"
|
||||
#CFLAGS += -DCONFIG_LORAMAC_DEV_ADDR_DEFAULT=\"00000000\"
|
||||
#CFLAGS += -DCONFIG_LORAMAC_NWK_SKEY_DEFAULT=\"00000000000000000000000000000000\"
|
||||
#CFLAGS += -DCONFIG_LORAMAC_APP_SKEY_DEFAULT=\"00000000000000000000000000000000\"
|
||||
#CFLAGS += -DLORAMAC_DEFAULT_RX2_DR=LORAMAC_DR_3
|
||||
|
@ -68,7 +68,7 @@ CFLAGS += -DCONFIG_LORAMAC_APP_EUI_DEFAULT=\"BBBBBBBBBBBBBBBB\"
|
||||
CFLAGS += -DCONFIG_LORAMAC_APP_KEY_DEFAULT=\"CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC\"
|
||||
CFLAGS += -DCONFIG_LORAMAC_APP_SKEY_DEFAULT=\"DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\"
|
||||
CFLAGS += -DCONFIG_LORAMAC_NWK_SKEY_DEFAULT=\"EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE\"
|
||||
CFLAGS += -DLORAMAC_DEV_ADDR_DEFAULT=\"FFFFFFFF\"
|
||||
CFLAGS += -DCONFIG_LORAMAC_DEV_ADDR_DEFAULT=\"FFFFFFFF\"
|
||||
```
|
||||
|
||||
## Send data
|
||||
|
@ -84,8 +84,8 @@ extern "C" {
|
||||
/**
|
||||
* @brief Default device address
|
||||
*/
|
||||
#ifndef LORAMAC_DEV_ADDR_DEFAULT
|
||||
#define LORAMAC_DEV_ADDR_DEFAULT "00000000"
|
||||
#ifndef CONFIG_LORAMAC_DEV_ADDR_DEFAULT
|
||||
#define CONFIG_LORAMAC_DEV_ADDR_DEFAULT "00000000"
|
||||
#endif
|
||||
/** @} */
|
||||
|
||||
|
@ -213,7 +213,7 @@ static void _init(gnrc_netif_t *netif)
|
||||
fmt_hex_bytes(_appkey, CONFIG_LORAMAC_APP_KEY_DEFAULT);
|
||||
fmt_hex_bytes(_deveui, CONFIG_LORAMAC_DEV_EUI_DEFAULT);
|
||||
fmt_hex_bytes(_appeui, CONFIG_LORAMAC_APP_EUI_DEFAULT);
|
||||
fmt_hex_bytes(_devaddr, LORAMAC_DEV_ADDR_DEFAULT);
|
||||
fmt_hex_bytes(_devaddr, CONFIG_LORAMAC_DEV_ADDR_DEFAULT);
|
||||
|
||||
/* Initialize default keys, address and EUIs */
|
||||
memcpy(netif->lorawan.nwkskey, _nwkskey, sizeof(_nwkskey));
|
||||
|
Loading…
Reference in New Issue
Block a user