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 | ((proximity, brightness, requestId) => void) = null
Type declaration
-
- (proximity, brightness, requestId): void
-
Parameters
-
proximity: number
-
brightness: number
-
requestId: number
Returns void
onStatusButtonPressed
onStatusButtonPressed: null | (() => void) = null
Static Readonly NotifyMode
NotifyMode: {
ALWAYS: 32;
ONCE: 16;
STOP: 0;
UPDATE_BRIGHTNESS: 8;
UPDATE_PROXIMITY: 4;
} = ...
Type declaration
-
Readonly ALWAYS: 32
-
Readonly ONCE: 16
-
Readonly STOP: 0
-
Readonly UPDATE_BRIGHTNESS: 8
-
Readonly UPDATE_PROXIMITY: 4
Battery level event