It really depends on how frequently you'll be using the connection. If
you're using it frequently then you should pass the ModbusIpMaster
around so as to not waste time opening/closing the connection. Else,
the other approach may be appropriate.
Disposing of the ModbusIpMaster will dispose the TcpClient.
Not sure about your SocketException. You could always retry creating
the TcpClient.
Scott
> --
>
> You received this message because you are subscribed to the Google Groups "NModbus" group.
> To post to this group, send email to
nmodbus...@googlegroups.com.
> To unsubscribe from this group, send email to
nmodbus-discu...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/nmodbus-discuss?hl=.
>
>
>