We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5e416e commit a97870eCopy full SHA for a97870e
examples/Node/Decoder.js
@@ -15,9 +15,10 @@ function Decoder(bytes, port) {
15
var decoded = {};
16
17
var ports = {
18
- 1: 'interval',
19
- 2: 'motion',
20
- 3: 'button'
+ 1: 'setup',
+ 2: 'interval',
+ 3: 'motion',
21
+ 4: 'button'
22
};
23
24
decoded.event = ports[port];
examples/Node/Node.ino
@@ -16,7 +16,8 @@ TheThingsNode *node;
enum port : byte
{
- PORT_INTERVAL = 1,
+ PORT_SETUP = 1,
+ PORT_INTERVAL,
PORT_MOTION,
PORT_BUTTON
@@ -49,6 +50,8 @@ void setup() {
49
50
51
debugSerial.println("-- NODE: STATUS");
52
node->showStatus();
53
+
54
+ sendData(PORT_SETUP);
55
}
56
57
void loop() {
0 commit comments