Node-Arduino connects after MQTT in nodes

On a Pi Zero W, I have an Arduino connected via ttyUSB0 running the StandardFirmataPlus example sketch. If it wire a MQTT In node to an Arduino Out node, the mqtt in node fires on a full deploy before the arduino out node connects. Is there a way to delay the mqtt connection only on deploy or other strategy to deal with this?

edit Only seems to be an issue on a full deploy

If your prepared to always do a full-deploy, then node-red-contrib-queue-gate could do the job for you

image

[{"id":"efc0f3da.a1e92","type":"q-gate","z":"7e03a06d.7d71d","name":"","controlTopic":"control","defaultState":"queueing","openCmd":"open","closeCmd":"close","toggleCmd":"toggle","queueCmd":"queue","defaultCmd":"default","triggerCmd":"trigger","flushCmd":"flush","resetCmd":"reset","maxQueueLength":"100","keepNewest":false,"qToggle":false,"persist":false,"x":370,"y":160,"wires":[["6309d877.1ad288"]]},{"id":"1955893a.374627","type":"inject","z":"7e03a06d.7d71d","name":"","topic":"control","payload":"open","payloadType":"str","repeat":"","crontab":"","once":true,"onceDelay":"1","x":230,"y":240,"wires":[["efc0f3da.a1e92"]]}]

It will let you delay any messages at startup (assuming it activates quick enough to catch the 1st message from your MQTT node)