Harsch-Systems / node-red-contrib-pi-plates

Control Pi-Plates from Node-RED
Apache License 2.0
6 stars 7 forks source link

"off" input doesn't decorate DOUT node like "in" does #17

Open mharsch opened 3 years ago

mharsch commented 3 years ago

When you send "on" to a dout node, it gets decorated with a "1", but sending "off" just clears the annotation. We should probably change both to be "on" or "off" to reflect the last known state sent to the port. Sending "toggle" results in an unknown state (can we not interrogate the board for it's current state?). If it's truly unknown, we should probably just clear the decoration after receiving a "toggle" input.