rfxcom / node-rfxcom

Node.js client for talking to an RFXtrx433 device
MIT License
63 stars 46 forks source link

Cannot connect to RFXCOM devices when running on Windows #81

Open maxwellhadley opened 5 years ago

maxwellhadley commented 5 years ago

On Windows, calling the flush() method of the serialport object causes the serial device to disconnect immediately (serialport issue #1409 - ReadIOCompletion error closes port after flush on Windows). This prevents all communication with the RFXCOM device. This

This issue is the underlying cause of #70 - Error - "Writing to COM port" in package node-red-contrib-rfxcom.

maxwellhadley commented 5 years ago

I have published rfxcom version 2.0.1 - this rolls back to serialport version 6.2.2, while including a partially-functional workaround for this issue. Unplugging the RFXCOM device and reconnecting it no longer works correctly on Windows.

maxwellhadley commented 5 years ago

A pull request that fixes this issue has recently been merged into serialport master. When this package is next published to npm I will update node-rfxcom to reinstate correct operation on Windows.

maxwellhadley commented 4 years ago

The serialport package is updated in #90 (version 2.1.0) but the flush() call is not yet reinstated - awaiting further tests.