@flux-control/modbus-schema
    Preparing search index...

    Function readOnlyEncodeFailure

    • Constructs a failure Effect for monitor registers that cannot be written.

      Monitor registers are read-only. Calling encode() on a read-only schema fails with a ParseResult.Type error whose message indicates the register is read-only.

      Parameters

      • registerName: string

        Human-readable name of the register.

      • actual: unknown

        The value that was passed during encode.

      • ast: AST

        The Effect AST describing the expected type.

      Returns Effect<never, Type, never>