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:
- 11:b05c281295a3
- Parent:
- 9:36c624bb5d98
- Child:
- 12:d7ac3e3720a5
diff -r 339ee802697e -r b05c281295a3 main.cpp --- a/main.cpp Fri Nov 06 17:39:09 2015 +0000 +++ b/main.cpp Fri Nov 06 18:13:49 2015 +0000 @@ -30,38 +30,20 @@ */ static uint8_t DevEui[] = { - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 -}; - -#if( OVER_THE_AIR_ACTIVATION != 0 ) - -#define OVER_THE_AIR_ACTIVATION_DUTYCYCLE 7000000 // 7 [s] value in us - -/*! - * Application IEEE EUI - */ -static uint8_t AppEui[] = -{ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 /// <<< Change here }; /*! - * AES encryption/decryption cipher application key + * Device address */ -static uint8_t AppKey[] = -{ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 -}; - -#else +static uint32_t DevAddr = 0x00001091; /// <<< Change here /*! * AES encryption/decryption cipher network session key */ static uint8_t NwkSKey[] = { - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /// <<< Change here 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; @@ -70,17 +52,12 @@ */ static uint8_t AppSKey[] = { - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /// <<< Change here 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; -/*! - * Device address - */ -static uint32_t DevAddr = 0x00001091; -#endif /*! * Indicates if the MAC layer has already joined a network.