interface LoggingDataValue {
    getUnit(): string;
    getValue():
        | null
        | string
        | number
        | boolean;
    setDecimals(newDecimals: number): void;
    setFactor(newFactor: number): void;
    setUnit(newUnit: string): void;
    toString(): string;
}

Methods

  • Get the values unit of measurement

    Returns string

  • Get the raw data value

    Returns
        | null
        | string
        | number
        | boolean

  • Set the amount of decimals used when using toString

    Parameters

    • newDecimals: number

      amount of decimals to use

    Returns void

  • Set the value factor

    This method only has effect on getFactor

    Parameters

    • newFactor: number

    Returns void

    This method does not change the value. A new query should be created with the new factor

  • Overwrite the unit of measurement. Use in toString

    Parameters

    • newUnit: string

      new unit to use

    Returns void

  • Get a pretty printed version of the data value. This includes the unit and uses the set amount of decimals

    Returns string