Fork from LoRa Alliance program. available here: https://developer.mbed.org/users/Alliance/code/LoRaWAN/
Dependencies: LoRaMacLib SX1276Lib mbed Chainable_RGB_LED DigitDisplay
Fork of LoRaWAN by
Diff: main.cpp
- Revision:
- 12:d7ac3e3720a5
- Parent:
- 11:b05c281295a3
- Child:
- 13:6cfbb6d1f491
diff -r b05c281295a3 -r d7ac3e3720a5 main.cpp --- a/main.cpp Fri Nov 06 18:13:49 2015 +0000 +++ b/main.cpp Tue Nov 24 11:40:06 2015 +0000 @@ -30,13 +30,13 @@ */ static uint8_t DevEui[] = { - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 /// <<< Change here + 0x73, 0x65, 0x6d, 0x74, 0x65, 0x63, 0xef, 0x2c /// <<< Change here }; /*! * Device address */ -static uint32_t DevAddr = 0x00001091; /// <<< Change here +static uint32_t DevAddr = 0x6563ef2c; /// <<< Change here /*! * AES encryption/decryption cipher network session key @@ -44,7 +44,7 @@ static uint8_t NwkSKey[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /// <<< Change here - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xef, 0x2c }; /*! @@ -53,7 +53,7 @@ static uint8_t AppSKey[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /// <<< Change here - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xef, 0x2c }; @@ -67,8 +67,8 @@ /*! * Defines the application data transmission duty cycle */ -#define APP_TX_DUTYCYCLE 20000000 // 20 [s] value in us (minimum 10s) -#define APP_TX_DUTYCYCLE_RND 5000000 // 5 [s] value in us (minimum 3s) +#define APP_TX_DUTYCYCLE 50000000 // 50 [s] value in us (minimum 10s) +#define APP_TX_DUTYCYCLE_RND 10000000 // 10 [s] value in us (minimum 3s) /*! * User application data buffer size