Properties
UUIDS
UUIDS: { CHARACTERISTICS: { INDICATE: "72c90005-57a9-4d40-b746-534e22ec9f9e"; NOTIFY: "72c90003-57a9-4d40-b746-534e22ec9f9e"; WRITE: "72c90004-57a9-4d40-b746-534e22ec9f9e"; WRITE_WO_RESPONSE: "72c90002-57a9-4d40-b746-534e22ec9f9e" }; SERVICE_ID: "72c90001-57a9-4d40-b746-534e22ec9f9e" } = {SERVICE_ID: '72c90001-57a9-4d40-b746-534e22ec9f9e' as const,CHARACTERISTICS: {INDICATE: '72c90005-57a9-4d40-b746-534e22ec9f9e' as const,NOTIFY: '72c90003-57a9-4d40-b746-534e22ec9f9e' as const,WRITE: '72c90004-57a9-4d40-b746-534e22ec9f9e' as const,WRITE_WO_RESPONSE: '72c90002-57a9-4d40-b746-534e22ec9f9e' as const,} as const,} as const
Type declaration
-
CHARACTERISTICS: { INDICATE: "72c90005-57a9-4d40-b746-534e22ec9f9e"; NOTIFY: "72c90003-57a9-4d40-b746-534e22ec9f9e"; WRITE: "72c90004-57a9-4d40-b746-534e22ec9f9e"; WRITE_WO_RESPONSE: "72c90002-57a9-4d40-b746-534e22ec9f9e" }
-
INDICATE: "72c90005-57a9-4d40-b746-534e22ec9f9e"
-
NOTIFY: "72c90003-57a9-4d40-b746-534e22ec9f9e"
-
WRITE: "72c90004-57a9-4d40-b746-534e22ec9f9e"
-
WRITE_WO_RESPONSE: "72c90002-57a9-4d40-b746-534e22ec9f9e"
-
SERVICE_ID: "72c90001-57a9-4d40-b746-534e22ec9f9e"
onBatteryLevel
onBatteryLevel: ((battery: number) => void) | null = null
onSensorEvent
onSensorEvent: ((proximity: number, brightness: number, requestId: number) => void) | null = null
onStatusButtonPressed
onStatusButtonPressed: (() => void) | null = null
Static NotifyMode
NotifyMode: { ALWAYS: 32; ONCE: 16; STOP: 0; UPDATE_BRIGHTNESS: 8; UPDATE_PROXIMITY: 4 } = {STOP: 0 as const,UPDATE_PROXIMITY: 4 as const,UPDATE_BRIGHTNESS: 8 as const,ONCE: 16 as const,ALWAYS: 32 as const,} as const
Type declaration
-
ALWAYS: 32
-
ONCE: 16
-
STOP: 0
-
UPDATE_BRIGHTNESS: 8
-
UPDATE_PROXIMITY: 4
Battery level event