mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
net/lorawan : Move 'LORAMAC_APP_KEY_DEFAULT' to 'CONFIG_'
This commit is contained in:
parent
bcb0ed38ff
commit
d138fa9aad
@ -25,7 +25,7 @@ USEMODULE += $(DRIVER)
|
||||
# `ifconfig`
|
||||
|
||||
# OTAA compile time configuration keys
|
||||
CFLAGS += -DLORAMAC_APP_KEY_DEFAULT=\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\"
|
||||
CFLAGS += -DCONFIG_LORAMAC_APP_KEY_DEFAULT=\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\"
|
||||
CFLAGS += -DCONFIG_LORAMAC_APP_EUI_DEFAULT=\"BBBBBBBBBBBBBBBB\"
|
||||
CFLAGS += -DCONFIG_LORAMAC_DEV_EUI_DEFAULT=\"CCCCCCCCCCCCCCCC\"
|
||||
|
||||
|
@ -65,7 +65,7 @@ E.g in the application Makefile:
|
||||
```
|
||||
CFLAGS += -DCONFIG_LORAMAC_DEV_EUI_DEFAULT=\"AAAAAAAAAAAAAAAA\"
|
||||
CFLAGS += -DCONFIG_LORAMAC_APP_EUI_DEFAULT=\"BBBBBBBBBBBBBBBB\"
|
||||
CFLAGS += -DLORAMAC_APP_KEY_DEFAULT=\"CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC\"
|
||||
CFLAGS += -DCONFIG_LORAMAC_APP_KEY_DEFAULT=\"CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC\"
|
||||
CFLAGS += -DLORAMAC_APP_SKEY_DEFAULT=\"DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\"
|
||||
CFLAGS += -DLORAMAC_NWK_SKEY_DEFAULT=\"EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE\"
|
||||
CFLAGS += -DLORAMAC_DEV_ADDR_DEFAULT=\"FFFFFFFF\"
|
||||
|
@ -59,8 +59,8 @@ extern "C" {
|
||||
*
|
||||
* 16 bytes key, required for join procedure
|
||||
*/
|
||||
#ifndef LORAMAC_APP_KEY_DEFAULT
|
||||
#define LORAMAC_APP_KEY_DEFAULT "00000000000000000000000000000000"
|
||||
#ifndef CONFIG_LORAMAC_APP_KEY_DEFAULT
|
||||
#define CONFIG_LORAMAC_APP_KEY_DEFAULT "00000000000000000000000000000000"
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -210,7 +210,7 @@ static void _init(gnrc_netif_t *netif)
|
||||
/* Convert default keys, address and EUIs to hex */
|
||||
fmt_hex_bytes(_nwkskey, LORAMAC_NWK_SKEY_DEFAULT);
|
||||
fmt_hex_bytes(_appskey, LORAMAC_APP_SKEY_DEFAULT);
|
||||
fmt_hex_bytes(_appkey, LORAMAC_APP_KEY_DEFAULT);
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user