@flux-control/effect-modbus-rs
    Preparing search index...

    Class ModbusNotConnectedError

    Error indicating a transport operation was attempted before the connection was established or after it was closed.

    This is a local error — it is never returned by modbus-rs. Timeout setters require an open connection. Client acquisition opens the connection lazily, but fails after the transport scope has closed.

    Connect by calling withClient(unitId) on the transport service. The connection is established lazily on the first call.

    ModbusNotConnectedError — Triggered when the transport is null.

    Hierarchy

    • YieldableError<this> & {} & Readonly<{ cause: Error; message: string }>
      • ModbusNotConnectedError
    Index
    • Parameters

      • args: { cause: Error; message: string }
        • Readonlycause: Error

          The original cause (typically a descriptive error).

        • Readonlymessage: string

          Human-readable explanation of the error.

      Returns ModbusNotConnectedError

    cause: Error

    The cause of the error.

    message: string

    Human-readable explanation of the error.