forked from sbiermann/Lora-TTNMapper-ESP32
-
Notifications
You must be signed in to change notification settings - Fork 46
/
device_config.h
17 lines (13 loc) · 988 Bytes
/
device_config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once
// uncomment to use OTAA instead of ABP
//#define USE_OTAA 1
// UPDATE WITH YOUR DEVICE TTN SECRETS
#ifdef USE_OTAA
static PROGMEM u1_t DEVEUI[8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; // Device EUI, hex, lsb
static PROGMEM u1_t APPEUI[8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; // Application EUI, hex, lsb
static PROGMEM u1_t APPKEY[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; // App Key, hex, msb
#else
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, hex, msb
static PROGMEM u1_t APPSKEY[16] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; // LoRaWAN AppSKey, application session key, hex, msb
static PROGMEM u4_t DEVADDR = 0x00000000 ; // LoRaWAN end-device address (DevAddr), hex, msb
#endif