node-modbus
node-modbus copied to clipboard
Fix Server Event Listener Overload Mismatch
The modbus server does not accept an event of 'connection' and respond with a net socket.
Fixes #269
@Byorun, let me know if this fixes your issue
@alexbuczynsky on a side note, your lock file is probably outdated
removing the lock file let me run npm install
Unfortunately this won't fix the problem.
I checked out the branch, build it and copied the dist to my project but the output is still the same.
And using the original server sample for readCoils
server.on('readCoils', function (request, response, send) {
/* Implement your own */
response.body.coils[0] = true
response.body.coils[1] = false
send(response)
})
still gives the no overloads match error. I assume this might be a copy and paste error since the server.on() doesn't have a three argument listener, only two
Any update on this fix ? @alexbuczynsky @Byorun