itiate a reboot of a node from gateway side? I don't know how, but it's needed for updating OTA. Th
Right click on the node and than "reboot"
Embedded software developer.
I thought the socat command is to slow in switching so i have created a python script which will readout the mysensors serial GW and sends the data to a virtual serial port to connect to openhab and a TCP socket for the MySensors controller.
Maybe this helps any one else:
I run openHAB on a RPI3 and i have made a Mysensors serial GW on a arduino nano.
I want to use openHAB for the interface and MySController for the managment. So i need to forward my serial communication to a TCP socket.
ser2net is a nice tool works fast but it block the Serial connection for openHAB.
socat works better for me by executing the following command:
$ sudo socat tcp-l:5003,reuseaddr,fork file:/dev/mySensorsCOM,nonblock,waitlock=/var/run/mySensorsCOM.lock
next step will be to put it in a script and sends the process to the background and restarts it if there went something go's wrong.