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 | ((temperature, humidity, requestId) => void) = null
Type declaration
-
- (temperature, humidity, requestId): void
-
Parameters
-
temperature: number
-
humidity: number
-
requestId: number
Returns void
onStatusButtonPressed
onStatusButtonPressed: null | (() => void) = null
Static Readonly EmitCondition
EmitCondition: {
ABOVE_UPPER_OR_ABOVE_LOWER: 1;
ABOVE_UPPER_OR_BELOW_LOWER: 0;
BELOW_UPPER_OR_ABOVE_LOWER: 17;
BELOW_UPPER_OR_BELOW_LOWER: 16;
} = ...
Type declaration
-
ABOVE_UPPER_OR_ABOVE_LOWER: 1
-
ABOVE_UPPER_OR_BELOW_LOWER: 0
-
BELOW_UPPER_OR_ABOVE_LOWER: 17
-
BELOW_UPPER_OR_BELOW_LOWER: 16
Static Readonly NotifyMode
NotifyMode: {
ALWAYS: 32;
EMIT_HUMIDITY: 2;
EMIT_TEMPERATURE: 1;
ONCE: 16;
STOP: 0;
UPDATE_HUMIDITY: 8;
UPDATE_TEMPERATURE: 4;
} = ...
Type declaration
-
Readonly ALWAYS: 32
-
Readonly EMIT_HUMIDITY: 2
-
Readonly EMIT_TEMPERATURE: 1
-
Readonly ONCE: 16
-
Readonly STOP: 0
-
Readonly UPDATE_HUMIDITY: 8
-
Readonly UPDATE_TEMPERATURE: 4
Battery level event