I have a connection to a OPC server in a PLC (Mitsubishi), if there is some problem reading I try to close the connection and reconnect again, but if there is not connection the OPC Server maintain the channel open and after 8 tries, give and error (too much connection).
I was investigating and find that client.Close() suppose to return an error but return always nil, how can I know the close it was done so I can reconnect again?
I have a connection to a OPC server in a PLC (Mitsubishi), if there is some problem reading I try to close the connection and reconnect again, but if there is not connection the OPC Server maintain the channel open and after 8 tries, give and error (too much connection). I was investigating and find that client.Close() suppose to return an error but return always nil, how can I know the close it was done so I can reconnect again?