BlackZork / mqmgateway

MQTT gateway for modbus networks
GNU Affero General Public License v3.0
42 stars 18 forks source link

Data read is not resumed after reconnecting USB RS485 adapter #9

Closed BlackZork closed 4 months ago

BlackZork commented 4 months ago

Gateway should close serial port if /dev/ttyUSB0 device disappears. Otherwise OS reconnects USB device as /dev/ttyUSB1, because gateway holds an open file descriptor to /dev/ttyUSB0. Gateway should close connection if device is no longer available. This should be a part of Watchdog code discussed in #39.

BlackZork commented 4 months ago

Fixed in a2fe853.