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

    Interface BatchingClientOptions

    Options for makeBatchingClient.

    interface BatchingClientOptions {
        cache?: boolean | RegisterCache;
        coils?: boolean | BatchingCoilOptions;
        debounce?: BatchingDebounceOptions;
        plan?: { reads?: PlanReadsOptions; writes?: PlanWritesOptions };
    }
    Index
    cache?: boolean | RegisterCache

    The write cache, which drops a write whose value the device already holds.

    Pass false to write every value, whether or not it changes anything. Pass a cache to share one with something else. The transport supplies its own by default, which is the right one: the cache is a belief about a physical device, and two caches on one unit disagree.

    coils?: boolean | BatchingCoilOptions

    Enables coil batching on client.coils. Pass options to set the coil cache and the coil planner limits.

    After a unit declares coil batching, raw FC05 and FC15 writes for that unit fail with ModbusInvalidArgumentError. A raw coil write would bypass the pending coil batch and its cache.

    false
    

    The windows. Omitted, nothing is debounced.

    plan?: { reads?: PlanReadsOptions; writes?: PlanWritesOptions }

    Limits handed to the planners.