node-modbus-serial
node-modbus-serial copied to clipboard
Enhancement needed for ports implementation
It would be great to be possible passing "connection/client" to the port instead of creating inside.
For example, modbus slave is connecting to the server via modem or etc, and server have to pass its socket to the port.
Something like that would be great:
var TcpPort = function(ip, options) {
var modbus = this;
...
this._client = options.socket || new net.Socket();
...
}
Sounds great :+1: Can you make a pull request implementing it ?
Sounds great 👍 Can you make a pull request implementing it ?
Yes