rxpoweredup
    Preparing search index...

    Interface IPortValueTransformer<T>

    interface IPortValueTransformer<T> {
        fromRawValue(value: number[]): T;
        toValueThreshold(value: T): number;
    }

    Type Parameters

    • T
    Index

    Methods

    • Converts a raw value received from the hub into a value that can be used by the application (or read by humans).

      Parameters

      • value: number[]

        The raw value received from the hub, usually a low-endian 8-bit integer array.

      Returns T