When using the ThingsBoard IoT Gateway with a Modbus device, the following behavior occurs:
If the Modbus connection is lost (for example the device becomes unreachable), the gateway continues to send telemetry values at the configured polling interval. The values are identical to the last successfully read values but are stored with new timestamps.
This makes it impossible to distinguish between a disconnected device and a device with constant values.