-
Notifications
You must be signed in to change notification settings - Fork 443
Closed
Description
Running ReadColis method on ModbusClient returns correct value, but when the ModbusSever disconnects, ReadCoils starts returning true.
EasyModbus library version: 5.0 (problem exists also on 4.4)
Steps I have tried:
- Using EasyModbus library on C# project I am calling ReadCoils(1,1)[0] every second
- I run EasyModbusTCP Server Simulator
- EasyModbus library connects to simulator and starts returning correct value
- I close the simulator
What happens:
- ReadCoils(1,1)[0] method starts returning true as, even if the previous value was false (when it was connected)
- Connected property of ModbusClient object is true for next second or two even when next exception is raised: System.IO.IOException: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.
What should happen:
- ReadCoils should raise exception or at least return previous value, when server disconnects
Metadata
Metadata
Assignees
Labels
No labels