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

"Port is opening" - when using RTU #4

Closed
pakerfeldt opened this issue Dec 9, 2016 · 1 comment
Closed

"Port is opening" - when using RTU #4

pakerfeldt opened this issue Dec 9, 2016 · 1 comment

Comments

@pakerfeldt
Copy link
Contributor

pakerfeldt commented Dec 9, 2016

Apparently, new SerialPort(...) will automatically open the port unless adding option autoOpen: false. Since modbus-serial is also opening this port we seem to get Port is opening and app bails out.

I'm in a bit of a hurry but I simply tried to add autoOpen: false to the options object but it didn't seem to have any effect unfortunately. Maybe this is actually caused because of something else?

@pakerfeldt
Copy link
Contributor Author

I realized I was looking at the wrong version of serialport. For the one we're using (2.0.5) you pass that option as a separate parameter.

@yaacov yaacov closed this as completed in #5 Dec 9, 2016
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