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 | ((proximity, brightness, requestId) => void) = null

Sensing event

Type declaration

    • (proximity, brightness, requestId): void
    • Parameters

      • proximity: number
      • brightness: number
      • requestId: number

      Returns void

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

Status button pressed event

Type declaration

    • (): void
    • Returns void

NotifyMode: {
    ALWAYS: 32;
    ONCE: 16;
    STOP: 0;
    UPDATE_BRIGHTNESS: 8;
    UPDATE_PROXIMITY: 4;
} = ...

Type declaration

  • Readonly ALWAYS: 32
  • Readonly ONCE: 16
  • Readonly STOP: 0
  • Readonly UPDATE_BRIGHTNESS: 8
  • Readonly UPDATE_PROXIMITY: 4

Accessors

Methods

Generated using TypeDoc