Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
livebox:hah_hahnode:outputnode [2015/02/03 09:47] – [Debugging] brett | livebox:hah_hahnode:outputnode [2015/02/03 09:53] (current) – [Output Node] brett | ||
---|---|---|---|
Line 5: | Line 5: | ||
{{: | {{: | ||
- | Snippet of configuration information needed in the jeenodeApplet.lua source. | + | Snippet of configuration information needed in the jeenodeApplet.lua source. |
< | < | ||
OutputNode = require(" | OutputNode = require(" | ||
local nodes = { | local nodes = { | ||
- | [7]=OutputNode{instance=" | + | [8]=OutputNode{instance=" |
} | } | ||
</ | </ | ||
Line 45: | Line 45: | ||
Serial.Send | Serial.Send | ||
{ | { | ||
- | data=1,1,7 s | + | data=1,1,8 s |
port=/ | port=/ | ||
} | } | ||
Line 83: | Line 83: | ||
[outputNode.1] i8 g212 @ 868Mhz | [outputNode.1] i8 g212 @ 868Mhz | ||
OUTPUT 0 0 0 0 0 | OUTPUT 0 0 0 0 0 | ||
+ | </ | ||
+ | |||
+ | Entering a command on the HAHCentral to toggle a Port on and off. The command will not be displayed as its typed into the sketch terminal window. | ||
+ | |||
+ | Enter command 1,1,8s (PORT 1,ON,NODE 8) then 1,0,8s (PORT 1,OFF,NODE 8) | ||
+ | < | ||
+ | [HAHCentral.1]1 g212 @ 868Mhz | ||
+ | OK 8 0 | ||
+ | > 8s | ||
+ | -> 2 b | ||
+ | > 8s | ||
+ | -> 2 b | ||
+ | </ | ||
+ | The sketch will display "> 8s" when the " | ||
+ | |||
+ | The output on the other side will now look like this: | ||
+ | < | ||
+ | [outputNode.1] i8 g212 @ 868Mhz | ||
+ | OUTPUT 0 0 0 0 0 | ||
+ | GOT 1 1 | ||
+ | Port 1 set on | ||
+ | GOT 1 0 | ||
+ | Port 1 set off | ||
</ | </ |