How to close Firmata (Johnny5) serial connection safely?

I think that the Johnny5 component has a bug.

  • If clicking Deploy, the current Board connections do not close properly, so after deployment they can not reconnect.
    Even the enhanced, new version.

I'm searching a way to place a manual "Close USB0" script ... or even better (if it's possible) a "Close ALL".

This code does not seem to work:

var io = new IOPlugin();
io.ClosePort(board.port);

ClosePort function link...

[{"id":"a15c94d6.413a78","type":"script","z":"2c9fbd1d.903c7a","name":"Disconnect USB0","func":"var io = new IOPlugin();\nio.ClosePort(board.port);","board":"ccc3d062.a2ca8","noerr":0,"x":280,"y":520,"wires":[[]]},{"id":"1014ea7c.ee9dde","type":"inject","z":"2c9fbd1d.903c7a","name":"DoIt!","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":520,"wires":[["a15c94d6.413a78"]]},{"id":"ccc3d062.a2ca8","type":"ioplugin","z":"","name":"RedonyNanoFirmata USB0","username":"","password":"","boardType":"firmata","serialportName":"/dev/ttyUSB0","connectionType":"local","mqttServer":"","pubTopic":"","subTopic":"","tcpHost":"","tcpPort":"","sparkId":"","sparkToken":"","beanId":"","impId":"","uuid":"","token":"","sendUuid":"","samplingInterval":"500"}]

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.