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