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

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

plate configs need to be more robust #3

Closed mharsch closed 4 years ago

mharsch commented 5 years ago

When creating a new plate instance, the address should be verified (using Poll() or getID()) before the configuration node is allowed to be created. As it currently stands, plates can be created with any address and when nodes try to do I/O with erroneous plates, the underlying python process crashes and nodered must be restarted to recover.

In the same vein, configuration nodes should validate themselves at startup to ensure that the plate stack has not changed. nodes that try to talk to plates that don't respond at startup should be disabled without breaking the rest of the flow.