Properties
Private
Readonly
EVENT_TYPE_ID_
EVENT_TYPE_ID_: number = ...
Protected
Readonly
EVENT_TYPE_ID_INDEX
EVENT_TYPE_ID_INDEX: 1 = ...
Private
Readonly
MESSAGE_TYPE_ID_
MESSAGE_TYPE_ID_: number = ...
Protected
Readonly
MESSAGE_TYPE_ID_INDEX
MESSAGE_TYPE_ID_INDEX: 0 = ...
Readonly
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" } = ...
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: null | ((battery: number) => void) = null
onSensorEvent
onSensorEvent: null | ((motionState: number, notifyMode: number, requestId: number) => void) = null
onStatusButtonPressed
onStatusButtonPressed: null | (() => void) = null
Static
Readonly
MotionState
MotionState: { DETECTED: 1; NOT_DETECTED: 2; SETUP: 0 } = ...
Type declaration
-
DETECTED: 1
-
NOT_DETECTED: 2
-
SETUP: 0
Static
Readonly
NotifyMode
NotifyMode: { ALWAYS: 32; DETECTED: 1; NOT_DETECTED: 2; ONCE: 16 } = ...
Type declaration
-
ALWAYS: 32
-
DETECTED: 1
-
NOT_DETECTED: 2
-
ONCE: 16
Battery level event