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: ((motionState: number, notifyMode: number, requestId: number) => void) | null = null
onStatusButtonPressed
onStatusButtonPressed: (() => void) | null = null
Static MotionState
MotionState: { DETECTED: 1; NOT_DETECTED: 2; SETUP: 0 } = {SETUP: 0 as const,DETECTED: 1 as const,NOT_DETECTED: 2 as const,} as const
Type declaration
-
DETECTED: 1
-
NOT_DETECTED: 2
-
SETUP: 0
Static NotifyMode
NotifyMode: { ALWAYS: 32; DETECTED: 1; NOT_DETECTED: 2; ONCE: 16 } = {DETECTED: 1 as const,NOT_DETECTED: 2 as const,ONCE: 16 as const,ALWAYS: 32 as const,} as const
Type declaration
-
ALWAYS: 32
-
DETECTED: 1
-
NOT_DETECTED: 2
-
ONCE: 16
Battery level event