rossmann-engineering / EasyModbusTCP.NET

Modbus TCP, Modbus UDP and Modbus RTU client/server library for .NET implementations
922 stars 396 forks source link

Error not managed during ReadInputRegisters #87

Open Silex-Axe opened 1 year ago

Silex-Axe commented 1 year ago

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.