Hi everyone,
I'm trying to improve
Modbus TCP library from
@Walter95 that internally uses
Socket and
AsyncStreams
I was trying to add the
_Connected and
_Disconnected events.
I managed to get the first one (forwarding the Socket event) but I do not know how to detect a
disconnection of the client from the server....
I implemented the
_Terminated event from AsyncStreams but it does not seem to work properly... I saw it working after something like
5 minutes after disconnecting the server from the network.
Is there a reliable way to know if the connection has been terminated?
Thanks in advance
Edit: I Test several times and most of the times the event does not fire at all