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

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

Status button pressed event

Type declaration

    • (): void
    • Returns void

PATTERN: {
    BLINK: 1;
    FIREFLY: 2;
} = ...

Type declaration

  • Readonly BLINK: 1
  • Readonly FIREFLY: 2

Accessors

Methods

  • Create command of LED

    Parameters

    • colors: {
          blue: number;
          green: number;
          red: number;
      }
      • blue: number
      • green: number
      • red: number
    • totalTime: number
    • cycleOnTime: number
    • cycleOffTime: number
    • pattern: number

    Returns number[]

    command

Generated using TypeDoc