I have a flow which uses an inject node each 1 second to trigger a serial request from a USB device. If the device is connected to the node-red machine when I deploy the flow, it connects fine. If the device is not connected, the serial request times out as expected. I cannot find a way to force the serial request to retry the connection even though the inject node continues to trigger the serial request evey second. In other words, once the USB device is physically connected, I need to re-deploy the flow to get it to recognize the device. Is there a way to reconnect it without having to re-deploy?
Hi @kxkayser
You need to use the serial control
node, this allows dynamic connection behaviour.
coupled with some other routines in your flow, to detect if the port exists, follow that using the serial control
node to connect when your flow can see it.
If I am not mistaken, this node controls the serial connection for the Serial Nodes