Skip to content

Commit 1b72a8c

Browse files
committed
Use define for freqPlan
1 parent 6cf163f commit 1b72a8c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/Node/Node.ino

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
#include <TheThingsNetwork.h>
22
#include <TheThingsNode.h>
33

4+
// Set your AppEUI and AppKey
45
const char *appEui = "0000000000000000";
56
const char *appKey = "00000000000000000000000000000000";
67

78
#define loraSerial Serial1
89
#define debugSerial Serial
910

10-
TheThingsNetwork ttn(loraSerial, debugSerial, TTN_FP_EU868);
11+
// Replace REPLACE_ME with TTN_FP_EU868 or TTN_FP_US915
12+
#define freqPlan REPLACE_ME
13+
14+
TheThingsNetwork ttn(loraSerial, debugSerial, freqPlan);
1115
TheThingsNode *node;
1216

1317
enum port : byte

0 commit comments

Comments
 (0)