Closed sungyeon-0975 closed 2 years ago
socket.on('connect', function () { client.writeSingleCoil(4, true).then(function (resp) { console.log(resp) socket.close() }, function (err) { console.log(err) socket.close() }) })
not working. so I modify 'connect' to 'open'. then it works. so plz, check examples/javascript/serial/WriteSingleCoil.js.
@sungyeon-0975 Always happy for pull requests.
not working. so I modify 'connect' to 'open'. then it works. so plz, check examples/javascript/serial/WriteSingleCoil.js.