forked from DeuxVis/Lora-TTNMapper-T-Beam
-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.h
14 lines (11 loc) · 1.05 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef LORA_TTNMAPPER_TBEAM_CONFIG_INCLUDED
#define LORA_TTNMAPPER_TBEAM_CONFIG_INCLUDED
// UPDATE WITH YOUR TTN KEYS AND ADDR (ABP METHOD).
static PROGMEM u1_t NWKSKEY[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; // LoRaWAN NwkSKey, network session key
static u1_t PROGMEM APPSKEY[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; // LoRaWAN AppSKey, application session key
static const u4_t DEVADDR = 0x00000000; // LoRaWAN end-device address (DevAddr)
// // UPDATE WITH YOUR TTN KEYS (OTAA METHOD).
RTC_DATA_ATTR static u1_t PROGMEM APPEUI[8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; // lsb, little endian
RTC_DATA_ATTR static u1_t PROGMEM DEVEUI[8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; // lsb, little endian
RTC_DATA_ATTR static u1_t PROGMEM APPKEY[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; // msb, big endian
#endif //LORA_TTNMAPPER_TBEAM_CONFIG_INCLUDED