After spending far too much time mucking about I am turning somewhat frustrated to the Forum for help.
I have several different nodes running and happily sending their data to TTN and I visualize this with Node-Red. All fine there.
But now I wish to download some data from Node-Red to one of these nodes, let’s say turn a LED on or off with a particular Byte. (0x11 for ON and 0x10 for OFF).
Sending these Bytes in the TTN downlink Console works fine.
But now I wish to do this from Node-Red and cannot get it done, and hope that the Forum may have some pointers.
My Node-Red flow is as follows. (json attached)flows.json (536 Bytes)
The encoder that I have defined in TTN is:
// encoder function
function Encoder(object, port) {
if (object.led === “LEDON”) {
return [17];
} else if (object.led === “LEDOFF”) {
return [16];
}
return [0];
}
Any and all help would be appreciated !