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

    Function wasmSerialAsciiServerLayer

    • A scoped Layer that starts a browser Modbus ASCII server over the Web Serial API. See wasmSerialRtuServerLayer for shared details (the serialPort source, and the serve()-forking behavior).

      Parameters

      • options: WasmSerialServerOptions

        Serial port, baud rate, unit ID, etc.

      • handlers: ServerHandlers

        Callback functions that handle incoming Modbus requests.

      Returns Layer<never, ModbusError>

      A Layer that fails with ModbusError on bind failure.

      • WasmSerialServerOptions — Options accepted by the upstream WASM serial server.
      • ServerHandlers — Interface for request handler callbacks.