Comments (8)
Cool. Thanks for explanation!
How about just being able to work with any Node.js stream: https://nodejs.org/api/stream.html
SerialPort already supports that and they improve it further in release 5+
from node-modbus-serial.
Yes, it was :-)
But we wanted to make it easy for users to just have one requirement,
See: #56
I'm inclining to remove this dependency ( we do not enforce it in the code ... [1] ) but I also want users to have easy life ...
[1] https://github.com/yaacov/node-modbus-serial/blob/master/index.js#L656
from node-modbus-serial.
How about just being able to work with any Node.js stream:
sound great, can you make a pull request ?
from node-modbus-serial.
Probably - when I get to it ;)
from node-modbus-serial.
Probably - when I get to it ;)
have fun =^..^=
from node-modbus-serial.
Closing, as I do not have time to look at it now.
from node-modbus-serial.
Would you re-consider making serialport an optional dependency? Docker images become muuuch larger when serialport needs to be built from source, which is shame when using only tcp.
from node-modbus-serial.
@ems Thank you for this issue 👍
a - it's still optionals in the code: https://github.com/yaacov/node-modbus-serial/blob/master/index.js#L738
b - I think the only problem is only here https://github.com/yaacov/node-modbus-serial/blob/master/package.json#L41
c- Can you think of a mechanism that will keep the default, and let us an option to build leaner containers ?
e.g. package-no-serial-port.json
, pckage.json.template
build with some Makefile ... ?
p.s. you can send a pull request with the dockerfile if you think it's nice :-)
from node-modbus-serial.
Related Issues (20)
- Port Not Open HOT 2
- Error after updating to 8.0.15 HOT 3
- Usage of isDebugEnabled to check the PDU raw data HOT 3
- Modbus TCP Connection was closed after 100 Seconds of Inactivity HOT 1
- ServerTCP causes uncaught exception if listen fails
- Permission denied, cannot open /dev/ttyUSB0
- Open-close function HOT 11
- Combination of modbus requests in the same TCP Frame. HOT 13
- Destroy function callback never to be called HOT 4
- Modbus RTU - CRC delay HOT 5
- Strange interaction with PLC when writing strings HOT 2
- multiple modbusRTU open/close will end with "Error Resource temporarily unavailable Cannot lock port" HOT 5
- ServerTCP: readHoldingRegisters throws Modbus exception 4: Slave device failure HOT 5
- Error "Buffer is not defined" during start Angular application HOT 7
- Does We have any plan using Typescript to refactor this repo?
- I expect to be able to return a string in the getMultipleInputRegisters method. HOT 6
- closing modbus connection using close() and it will crashing my electron app HOT 1
- ServerTCP getMultipleHoldingRegisters and getMultipleInputRegisters don't work with Promises
- 请问对于float,short,word等不同类型数据该如何读取 HOT 1
- Modbus TCP connect Telnet CRC Error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-modbus-serial.