2018-03-18 19:45:17 +01:00
|
|
|
/************************************************************
|
|
|
|
* LMIC LoRaWAN configuration
|
|
|
|
*
|
|
|
|
* Read the values from TTN console (or whatever applies)
|
|
|
|
*
|
|
|
|
************************************************************/
|
|
|
|
|
|
|
|
#include <Arduino.h>
|
|
|
|
|
2018-03-23 16:45:27 +01:00
|
|
|
// Set your DEVEUI here, if you have one. You can leave this untouched,
|
|
|
|
// then the DEVEUI will be generated during runtime from device's MAC adress
|
2018-03-21 22:50:49 +01:00
|
|
|
// Note: Use same format as in TTN console (cut & paste, for your convenience)
|
2018-04-04 01:37:59 +02:00
|
|
|
// *** Take care : If Using a board with Microchip 24AA02E64 Uinique ID for deveui, **
|
|
|
|
// *** this DEVEUI will be overwriten by the one contained in the Microchip module ***
|
2018-03-23 16:45:27 +01:00
|
|
|
static const u1_t DEVEUI[8]={ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
|
2018-03-18 19:45:17 +01:00
|
|
|
|
2018-03-21 22:50:49 +01:00
|
|
|
// Note: Use msb format for APPEUI as in TTN console (cut & paste, for your convenience)
|
2018-03-23 16:45:27 +01:00
|
|
|
// For TTN, APPEUI always starts with 0x70, 0xB3, 0xD5
|
2018-03-25 23:41:24 +02:00
|
|
|
static const u1_t APPEUI[8]={ 0x70, 0xB3, 0xD5, 0x00, 0x00, 0x00, 0x00, 0x00 };
|
2018-03-18 19:45:17 +01:00
|
|
|
|
2018-03-25 23:43:26 +02:00
|
|
|
// Note: Use msb format for APPEUI as in TTN console (cut & paste, for your convenience)
|
2018-05-11 12:40:36 +02:00
|
|
|
static const u1_t APPKEY[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
|