Apollo3zehn / FluentModbus

Lightweight and fast client and server implementation of the Modbus protocol (TCP/RTU).
MIT License
188 stars 69 forks source link

SampleServerClientTCP broken? #102

Closed raymondbh closed 4 months ago

raymondbh commented 7 months ago

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 commented 7 months ago

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 commented 4 months ago

Thank you for pointing that out, I just fixed it