Interface CharacteristicProps

interface CharacteristicProps {
    adminOnlyAccess?: Access[];
    description?: string;
    format: string;
    maxDataLen?: number;
    maxLen?: number;
    maxValue?: number;
    minStep?: number;
    minValue?: number;
    perms: Perms[];
    unit?: string;
    validValueRanges?: [min: number, max: number];
    validValues?: number[];
}

Properties

adminOnlyAccess?: Access[]
description?: string
format: string
maxDataLen?: number

Maximum number of characters when format is Formats.DATA. Default is 2097152 characters.

maxLen?: number

Maximum number of characters when format is Formats.STRING. Default is 64 characters. Maximum allowed is 256 characters.

maxValue?: number

Defines the maximum value for a numeric characteristic

minStep?: number
minValue?: number

Defines the minimum value for a numeric characteristic

perms: Perms[]
unit?: string
validValueRanges?: [min: number, max: number]

Two element array where the first value specifies the lowest valid value and the second element specifies the highest valid value.

validValues?: number[]

Defines an array of valid values to be used for the characteristic.