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

SampleServerClientTCP broken? #102

Closed
raymondbh opened this issue Dec 1, 2023 · 2 comments
Closed

SampleServerClientTCP broken? #102

raymondbh opened this issue Dec 1, 2023 · 2 comments

Comments

@raymondbh
Copy link

raymondbh commented Dec 1, 2023

Just testing your modbus library (that looks very good at first glance), but I just get "TCP connection closed unexpectedly" what ever I do. Tried two different computers and added firewall rules and everything I can think of...

bilde

SampleServerClientRTU seems to work just fine :)

@raymondbh
Copy link
Author

Ok, I figured it out, seems the client unitiIdentifier set to 0xFF in the sample does not work. I set it to 0 and it was fine :)

//var unitIdentifier = 0xFF;
var unitIdentifier = 0x00;

bilde

@Apollo3zehn
Copy link
Owner

Thank you for pointing that out, I just fixed it

Apollo3zehn pushed a commit that referenced this issue Feb 21, 2024
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