-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node 12 compatibility #43
Comments
No, I use this module quite a lot on arm devices so I need a simpler serialport module. I'm not sure why I added the Does version |
I've not tested it with serialport 7.x because I haven't any serial modbus device but only tcp. |
Then you should be fine without that dependency at all. |
I've just tested it with 8.0.5. It mostly works. writeSingleCoil() and writeSingleRegister() look ok, readHoldingRegisters() and readInputRegisters() too. But readCoils() and readDiscreteInputs() are not. They always return array of length Math.ceil(quantity/8)*8 and trails with zeros, so if { address: 1, quantity: 5 } even if all 8 coils are 1s it returns [1,1,1,1,1,0,0,0]. |
hmm.. I've switched back to 7 and i see the same. Is that expected? |
The version of serialport included in package.json (<7) is not compatible with node 12 and generates a lot of errors during installation. Have you already planned the update of that package?
The text was updated successfully, but these errors were encountered: