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
function doesn't work inside PLC.foreach()
PLC.foreach() should work.
const PLC = new Controller(); var number = 0;
PLC.connect('ip adress', 0).then(async () => { PLC.forEach(tag =>{ number++; }); console.log(number);
});
npm list
node --version
The text was updated successfully, but these errors were encountered:
the forEach method is available for a TagGroup instance not on a Controller instance.
forEach
TagGroup
Controller
Sorry, something went wrong.
No branches or pull requests
Current Behavior
function doesn't work inside PLC.foreach()
Expected Behavior
PLC.foreach() should work.
Possible Solution (Optional)
Context
const PLC = new Controller();
var number = 0;
PLC.connect('ip adress', 0).then(async () => {
PLC.forEach(tag =>{
number++;
});
console.log(number);
});
Steps to Reproduce (for bugs only)
Your Environment
npm list
- e.g. 1.0.6):node --version
- e.g. 9.8.0):The text was updated successfully, but these errors were encountered: