If tcpClient is disconnected, data received by ModbusClient.ReadInputRegisters. If serialportis null, udpflagis false and tcpClient.Client.Connected is false, the data array is never updated and no exception is risen, thus generating a situation where every call without reconnecting to the client will return the same value based on inputs.
If tcpClient is disconnected, data received by ModbusClient.ReadInputRegisters. If
serialport
is null,udpflag
is false andtcpClient.Client.Connected
is false, the data array is never updated and no exception is risen, thus generating a situation where every call without reconnecting to the client will return the same value based on inputs.