Owned by the transport and published through
transport.connectionState, so an application can show link
status without inferring it from failed reads.
Disconnected — never opened, or closed. Operations open it lazily.
Connected — usable.
Reconnecting — the supervisor is re-establishing the link. Operations are
refused with ModbusCircuitOpenError rather than queued on a dead bus.
Down — a connection failure was observed. With a supervisor, operations
are refused while it waits to probe again. Without one, the state remains
observable but operations retain manual behavior until reconnect() or a
successful operation restores Connected.
Live connection state of a transport.
Owned by the transport and published through
transport.connectionState, so an application can show link status without inferring it from failed reads.Disconnected— never opened, or closed. Operations open it lazily.Connected— usable.Reconnecting— the supervisor is re-establishing the link. Operations are refused with ModbusCircuitOpenError rather than queued on a dead bus.Down— a connection failure was observed. With a supervisor, operations are refused while it waits to probe again. Without one, the state remains observable but operations retain manual behavior untilreconnect()or a successful operation restoresConnected.