mathiask88 / node-snap7

node.js wrapper for snap7
MIT License
163 stars 59 forks source link

S7Server.GetParam() always returns boolean #87

Open gcibeira opened 1 year ago

gcibeira commented 1 year ago

When calling S7Server.GetParam(paramNumber), it always returns a boolean instead of the value specified by paramNumber.

This is my code:

var snap7 = require('node-snap7');
var s7server = new snap7.S7Server();
s7server.SetParam(1,3001);
s7server.StartTo('127.0.0.1');
console.log(s7server.GetParam(1),s7server.GetParam(10),s7server.GetParam(11) );

Output:

PS C:\Users\...\snap7test> node server.js
true true true