mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
net/lorawan : Move 'LORAMAC_DEV_EUI_DEFAULT' to 'CONFIG_'
This commit is contained in:
parent
3ecd304354
commit
5b4a873de5
@ -27,7 +27,7 @@ USEMODULE += $(DRIVER)
|
||||
# OTAA compile time configuration keys
|
||||
CFLAGS += -DLORAMAC_APP_KEY_DEFAULT=\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\"
|
||||
CFLAGS += -DLORAMAC_APP_EUI_DEFAULT=\"BBBBBBBBBBBBBBBB\"
|
||||
CFLAGS += -DLORAMAC_DEV_EUI_DEFAULT=\"CCCCCCCCCCCCCCCC\"
|
||||
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
|
||||
|
@ -63,7 +63,7 @@ select join mode and type `ifconfig <if_pid> up`.
|
||||
E.g in the application Makefile:
|
||||
|
||||
```
|
||||
CFLAGS += -DLORAMAC_DEV_EUI_DEFAULT=\"AAAAAAAAAAAAAAAA\"
|
||||
CFLAGS += -DCONFIG_LORAMAC_DEV_EUI_DEFAULT=\"AAAAAAAAAAAAAAAA\"
|
||||
CFLAGS += -DLORAMAC_APP_EUI_DEFAULT=\"BBBBBBBBBBBBBBBB\"
|
||||
CFLAGS += -DLORAMAC_APP_KEY_DEFAULT=\"CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC\"
|
||||
CFLAGS += -DLORAMAC_APP_SKEY_DEFAULT=\"DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\"
|
||||
|
@ -41,8 +41,8 @@ extern "C" {
|
||||
*
|
||||
* 8 bytes key, required for join procedure
|
||||
*/
|
||||
#ifndef LORAMAC_DEV_EUI_DEFAULT
|
||||
#define LORAMAC_DEV_EUI_DEFAULT "0000000000000000"
|
||||
#ifndef CONFIG_LORAMAC_DEV_EUI_DEFAULT
|
||||
#define CONFIG_LORAMAC_DEV_EUI_DEFAULT "0000000000000000"
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -211,7 +211,7 @@ static void _init(gnrc_netif_t *netif)
|
||||
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(_deveui, LORAMAC_DEV_EUI_DEFAULT);
|
||||
fmt_hex_bytes(_deveui, CONFIG_LORAMAC_DEV_EUI_DEFAULT);
|
||||
fmt_hex_bytes(_appeui, LORAMAC_APP_EUI_DEFAULT);
|
||||
fmt_hex_bytes(_devaddr, LORAMAC_DEV_ADDR_DEFAULT);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user