-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeacon_confs.hpp
70 lines (42 loc) · 1.25 KB
/
beacon_confs.hpp
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#ifndef BEACON_CONFS_H
#define BEACON_CONFS_H
//To set debug mode
#define DEBUG
////P2P
//<Freq>,<SF>,<Bandwidth>,<CR>,<Preamble>,<Power>
//AT+P2P=868000000:9:125:0:8:15
#define P2P_FREQ "868000000"
#define P2P_SF "7"
#define P2P_BANDWITH "125"
#define P2P_CR "0"
#define P2P_PREAMBLE "8"
#define P2P_POWER "15"
//#define BAND
#define P2P_OPS P2P_FREQ":"P2P_SF":"P2P_BANDWITH":"P2P_CR":"P2P_PREAMBLE":"P2P_POWER
//Programmer needs to configure lora operation confs here
#define JOIN_REQ "1:0:10:8" // <Join command><Auto-Join config><Reattempt interval><numbers of join attempts>
//NWM
#define P2P "0"
#define LORAWAN "1"
////LORAWAN
//CLASS
#define CLASS_A "A"
#define CLASS_B "B"
#define CLASS_C "C"
//BAND
#define BAND "4"
//NJM
#define ABP "0"
#define OTAA "1"
//Programmer needs to configure lora join keys here
#define DEV_EUI "ac1f09fffe075ef0"
#define DEV_ADDR "fe075ef0"
#define APPS_KEY "ac1f09fffe075ef0ac1f09fff8683172"
#define NWKS_KEY "ac1f09fffe075ef0ac1f09fff8683172"
#define APP_KEY
//Programmer needs to set conf parameters here
#define NWM LORAWAN
#define NJM ABP
#define CLASS CLASS_A
int recent_mode = 0;
#endif