Closed ekawahyu closed 6 years ago
SerialListener
and SerialConnection
were updated to the latest version of the serialport
package.
According to the serialport's upgrade guide, the readable
event is a preferred way of reading data over the data
event (and in Node.js in general).
serialport
is at version 6. virtual-serialport
emulates serialport
version <4.
Looking at the code of virtual-serialport
you should be safe to swap to TCP/IP for testing.
Ok, got it! Thanks for the clarification!
I am working on multiple Modbus devices using h5.modbus and virtual-serialport to form a virtual RS485 network on my computer. I found out that h5.modbus latest changes break data flow of virtual-serialport. Virtual-serialport expects to see 'data' event from h5.modbus in order to work. When I added back those 'data' event handler and binding within h5.modbus library, the virtual-serialport worked as expected. So, what was the reason for serialport 'data' event and binding removal in h5.modbus? Thank you.