Giter Site home page Giter Site logo

Node 12 compatibility about stream HOT 5 OPEN

node-modbus avatar node-modbus commented on May 27, 2024
Node 12 compatibility

from stream.

Comments (5)

dresende avatar dresende commented on May 27, 2024

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 <7 but perhaps it was because of the errors.

Does version >=7 work with the module?

from stream.

zamu87 avatar zamu87 commented on May 27, 2024

I've not tested it with serialport 7.x because I haven't any serial modbus device but only tcp.

from stream.

dresende avatar dresende commented on May 27, 2024

Then you should be fine without that dependency at all.

from stream.

sarat12 avatar sarat12 commented on May 27, 2024

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 <7 but perhaps it was because of the errors.

Does version >=7 work with the module?

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].

from stream.

sarat12 avatar sarat12 commented on May 27, 2024

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 <7 but perhaps it was because of the errors.
Does version >=7 work with the module?

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?

from stream.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.