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

Polling #3

Closed
anthrogan opened this issue Mar 21, 2018 · 4 comments
Closed

Polling #3

anthrogan opened this issue Mar 21, 2018 · 4 comments

Comments

@anthrogan
Copy link
Contributor

I'm polling a PLC via setInterval once connected and passing data over socketio to a vue application.

Is there a more appropriate method to polling the PLC? Or is this the best way for "live" responses for a web front end?

@psi-4ward
Copy link
Owner

This is the way to go for now, see mathiask88/node-snap7#21

I use the same approach in my (feathers) backend which polls the PLC DBs and emits socket events whenever a value changes

@anthrogan
Copy link
Contributor Author

Ok bud, I'll carry on thank you!

@anthrogan
Copy link
Contributor Author

I'll add a polling example to documentation when I get a few spare minutes if you like?

@psi-4ward
Copy link
Owner

of course please !

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

2 participants