We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
I am using the function 'writeSingleCoil' to write value 1 on address 5. The example is given below: var modbus = require("modbus-stream"); modbus.tcp.server({ debug: "server" }, (connection) => { connection.writeSingleCoil({ address: 5, value: 1 }, (err, info) => { console.log("Write Request: Server"); console.log("response", info.response); }); }).listen(12345, () => { modbus.tcp.connect(12345, { debug: "client" }, (err, connection) => { connection.on("write-single-coil", (request, reply) => { console.log("Write Request: Client"); console.log(request.request.value); reply(null, 2,1); }); }); }); My Questions are:
var modbus = require("modbus-stream");
modbus.tcp.server({ debug: "server" }, (connection) => {
connection.writeSingleCoil({ address: 5, value: 1 }, (err, info) => {
console.log("Write Request: Server");
console.log("response", info.response);
});
}).listen(12345, () => {
modbus.tcp.connect(12345, { debug: "client" }, (err, connection) => {
connection.on("write-single-coil", (request, reply) => {
console.log("Write Request: Client");
console.log(request.request.value);
reply(null, 2,1);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
I am using the function 'writeSingleCoil' to write value 1 on address 5.
The example is given below:
var modbus = require("modbus-stream");
modbus.tcp.server({ debug: "server" }, (connection) => {
connection.writeSingleCoil({ address: 5, value: 1 }, (err, info) => {
console.log("Write Request: Server");
console.log("response", info.response);
});
}).listen(12345, () => {
modbus.tcp.connect(12345, { debug: "client" }, (err, connection) => {
connection.on("write-single-coil", (request, reply) => {
console.log("Write Request: Client");
console.log(request.request.value);
reply(null, 2,1);
});
});
});
My Questions are:
The text was updated successfully, but these errors were encountered: