Skip to content
New issue

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

S7Server.GetParam() always returns boolean #87

Open
gcibeira opened this issue Nov 30, 2022 · 0 comments
Open

S7Server.GetParam() always returns boolean #87

gcibeira opened this issue Nov 30, 2022 · 0 comments

Comments

@gcibeira
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant