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

Connection status issues resolved #156

Merged
merged 5 commits into from
Oct 22, 2021
Merged

Connection status issues resolved #156

merged 5 commits into from
Oct 22, 2021

Conversation

eriklagerwall
Copy link
Contributor

Hi. I fixed a issues with RTU devices. Using calloc instead of malloc makes shore that isConnected in MB_device is false on initialization.
Also moved the part that handles multiple RTU devices to initializeMB so that modbus_new_rtu is called only once for every port making shore that port settings and connections status is handled consistent.

Fixes #150

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

Successfully merging this pull request may close these issues.

Mutiple Modbus RTU on Raspberry Pi
2 participants