|
|
What steps will reproduce the problem?
1. All working fine --> data is retrieved from deivce, then...
2. The netowrk is disconnected (Unplug the network cable...)
3. A read attempt to the device fails --> As expected
4. The network is reconnected
5. A read attempt throughs the following exception:
InvalidOperationException - The operation is not allowed on non-
connected sockets.
Running Windows XP, VS2008, NModbus_net-3[1].5_1.11.0.0.
I am using ModbusIpMaster to connect and retrieve data from an modbus
(TCP) enabled device.
This works fine, until the a network clitch ouccurs (Net work cable is
unplugged).
The next call after the netork has been re-established throughs the
following exception:
InvalidOperationException - The operation is not allowed on non-connected
sockets.
Although I can catch the exception I cannot get "reconnected".
Any ideas on how to re-establish the connection?
Ocle
|