Hierarchy

Constructors

Properties

UUIDS: {
    CHARACTERISTICS: {
        INDICATE: string;
        NOTIFY: string;
        WRITE: string;
        WRITE_WO_RESPONSE: string;
    };
    SERVICE_ID: string;
} = ...

Type declaration

  • Readonly CHARACTERISTICS: {
        INDICATE: string;
        NOTIFY: string;
        WRITE: string;
        WRITE_WO_RESPONSE: string;
    }
    • Readonly INDICATE: string
    • Readonly NOTIFY: string
    • Readonly WRITE: string
    • Readonly WRITE_WO_RESPONSE: string
  • Readonly SERVICE_ID: string
onBatteryLevel: null | ((battery) => void) = null

Battery level event

Type declaration

    • (battery): void
    • Parameters

      • battery: number

      Returns void

onSensorEvent: null | ((temperature, humidity, requestId) => void) = null

Sensing event

Type declaration

    • (temperature, humidity, requestId): void
    • Parameters

      • temperature: number
      • humidity: number
      • requestId: number

      Returns void

onStatusButtonPressed: null | (() => void) = null

Status button pressed event

Type declaration

    • (): void
    • Returns void

EmitCondition: {
    ABOVE_UPPER_OR_ABOVE_LOWER: 1;
    ABOVE_UPPER_OR_BELOW_LOWER: 0;
    BELOW_UPPER_OR_ABOVE_LOWER: 17;
    BELOW_UPPER_OR_BELOW_LOWER: 16;
} = ...

Type declaration

  • ABOVE_UPPER_OR_ABOVE_LOWER: 1
  • ABOVE_UPPER_OR_BELOW_LOWER: 0
  • BELOW_UPPER_OR_ABOVE_LOWER: 17
  • BELOW_UPPER_OR_BELOW_LOWER: 16
NotifyMode: {
    ALWAYS: 32;
    EMIT_HUMIDITY: 2;
    EMIT_TEMPERATURE: 1;
    ONCE: 16;
    STOP: 0;
    UPDATE_HUMIDITY: 8;
    UPDATE_TEMPERATURE: 4;
} = ...

Type declaration

  • Readonly ALWAYS: 32
  • Readonly EMIT_HUMIDITY: 2
  • Readonly EMIT_TEMPERATURE: 1
  • Readonly ONCE: 16
  • Readonly STOP: 0
  • Readonly UPDATE_HUMIDITY: 8
  • Readonly UPDATE_TEMPERATURE: 4

Accessors

Methods

  • Create command of set-mode

    Parameters

    • temperatureRangeUpper: number
    • temperatureRangeLower: number
    • humidityRangeUpper: number
    • humidityRangeLower: number
    • temperatureCondition: number
    • humidityCondition: number
    • notifyMode: number
    • opt_requestId: number = 0

    Returns number[]

Generated using TypeDoc