Demo of DHT11->mDot->TTN
Dependencies: DHT22 DS18B20_1wire SHTx TSL2561_I2C libmDot mbed-rtos mbed
Fork of mDot_TTN_DHT11 by
Revision 19:a2c9c4cc4863, committed 2016-12-03
- Comitter:
- merckeng
- Date:
- Sat Dec 03 22:30:43 2016 +0000
- Parent:
- 18:5b57c3cb4554
- Commit message:
- remove keys;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 5b57c3cb4554 -r a2c9c4cc4863 main.cpp --- a/main.cpp Sat Dec 03 22:05:59 2016 +0000 +++ b/main.cpp Sat Dec 03 22:30:43 2016 +0000 @@ -60,15 +60,9 @@ * https://account.thethingsnetwork.org/ */ -#if 1 -uint8_t AppSKey[16] = { 0x11, 0x6F, 0xA9, 0x2A, 0x46, 0xDE, 0xE6, 0x1D, 0x11, 0xE3, 0x71, 0x37, 0x24, 0xBC, 0x44, 0x1A }; -uint8_t NwkSKey[16] = { 0xF1, 0xA4, 0x78, 0x09, 0x75, 0xE2, 0x3C, 0x2B, 0x76, 0x8F, 0x9F, 0x8D, 0xE0, 0x5E, 0xAA, 0x64 }; -uint8_t NetworkAddr[4] = { 0x68, 0x8E, 0x64, 0xE5 }; -#else -uint8_t AppSKey[16] = { 0x60, 0xA5, 0xFF, 0xAA, 0x5E, 0xBA, 0x23, 0xD7, 0x20, 0xCF, 0xE0, 0x48, 0xBA, 0x63, 0x9C, 0x93 }; -uint8_t NwkSKey[16] = { 0xE6, 0x86, 0x87, 0x2C, 0x4D, 0x77, 0x12, 0x18, 0xAF, 0xE2, 0xDC, 0x54, 0xB6, 0x2F, 0x46, 0x16 }; -uint8_t NetworkAddr[4] = { 0xBD, 0x07, 0x3E, 0x3C }; -#endif +uint8_t AppSKey[16] = /* replace with Application Session Key in MSB format from TTN dashboard */; +uint8_t NwkSKey[16] = /* replace with Network Session Key in MSB format from TTN dashboard */; +uint8_t NetworkAddr[4] = /* replace with 4-byte Device Address from TTN dashboard */; // Some defines for the LoRa configuration #define LORA_SF mDot::SF_7