-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.h.example
47 lines (31 loc) · 1.7 KB
/
config.h.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#pragma once
// Only one of these settings must be defined
#define USE_OTAA
// #define USE_ABP
#ifdef USE_OTAA
// LoRaWAN OTAA AppEUI / JoinEUI, application or join EUI in little endian format (LSB)
static const u1_t PROGMEM APPEUI[8] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
// LoRaWAN OTAA DevEUI, device EUI in little endian format (LSB)
static const u1_t PROGMEM DEVEUI[8] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
// LoRaWAN OTAA AppKey, application key in big endian format (MSB)
static const u1_t PROGMEM APPKEY[16] = {0x00, 0x00, 0x00, 0x0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
#endif
#ifdef USE_ABP
// LoRaWAN ABP NwkSKey, network session key in big endian format (MSB)
static const PROGMEM u1_t NWKSKEY[16] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
// LoRaWAN ABP AppSKey, application session key in big endian format (MSB)
static const u1_t PROGMEM APPSKEY[16] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
// LoRaWAN ABP DevAddr, device address in big endian format (MSB)
static const u4_t DEVADDR = 0x00000000;
#endif
// TX interval seconds
#define TX_INTERVAL 900
// Maximum number of OTAA join attempts before device goes to deep sleep.
// May need adjustment if data rates other than SF7 should be auto-discovered. Default: 3
// #define JOIN_RETRIES 3
// TX data rate (will be ignored in OTAA mode)
#define TX_DATARATE DR_SF7
// Changes until session data is saved to FRAM (to reduce write cycles)
#define SESSION_SAVE_CHANGES 3
// Disable internal pullup for pulse input if external resistor R3 is populated
// #define USE_EXTERNAL_PULLUP