ESP32-PaxCounter/src/loraconf.sample.h

28 lines
1.3 KiB
C
Raw Normal View History

2018-03-18 19:45:17 +01:00
/************************************************************
* LMIC LoRaWAN configuration
*
2018-05-20 11:47:13 +02:00
* Read the values from TTN console (or whatever applies), insert them here,
* and rename this file to src/loraconf.h
*
2018-05-20 16:28:12 +02:00
* Note that DEVEUI, APPEUI and APPKEY should all be specified in MSB format.
* (This is different from standard LMIC-Arduino which expects DEVEUI and APPEUI in LSB format.)
2018-05-20 11:47:13 +02:00
* Set your DEVEUI here, if you have one. You can leave this untouched,
2018-05-20 11:47:13 +02:00
* then the DEVEUI will be generated during runtime from device's MAC adress
* and will be displayed on device's screen as well as on serial console.
*
* NOTE: Use MSB format (as displayed in TTN console, so you can cut & paste from there)
2018-05-20 11:47:13 +02:00
* For TTN, APPEUI in MSB format always starts with 0x70, 0xB3, 0xD5
*
* Note: If using a board with Microchip 24AA02E64 Uinique ID for deveui,
* the DEVEUI will be overwriten by the one contained in the Microchip module
*
2018-03-18 19:45:17 +01:00
************************************************************/
#include <Arduino.h>
static const u1_t DEVEUI[8]={ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
2018-03-18 19:45:17 +01:00
static const u1_t APPEUI[8]={ 0x70, 0xB3, 0xD5, 0x00, 0x00, 0x00, 0x00, 0x00 };
2018-03-18 19:45:17 +01:00
static const u1_t APPKEY[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };