VerovalDuoControlDevice
The Veroval duo control.
A device class rather than a declaration, because reading it is a conversation: the two user memories are asked in turn, and the device answers with bare control bytes as often as with payload. The decoding is still declared - the class supplies the framing and the walk, and nothing else.
Readings are stored measurements, not live ones. The device hands over its history when asked, so what arrives was taken before the connection and may be days old.
Kind: Class
Package: @ovok/native
Import
import { VerovalDuoControlDevice } from '@ovok/native/bt-management';
TypeScript signatures
(device: Device, params: CreateDeviceParams<CustomDeviceId>): VerovalDuoControlDevice
| Parameter | Type | Details |
|---|---|---|
device | Device | — |
params | CreateDeviceParams<CustomDeviceId> | — |
Returns: VerovalDuoControlDevice.
Public members
| Member | Type | Details |
|---|---|---|
id | string | — |
deviceData | DeviceData | — |
onError | (error: BleError | Error | string) => void | Optional. — |
onDeviceStatusChanged | (status: DeviceStatus, measurementTypeKey?: MeasurementTypeKey) => void | Optional. — |
onResult | (data: MeasurementWithCaseType<MeasurementTypeForDevices<[ T ]>>) => void | Optional. — |
onDeviceDisconnected | () => void | Optional. — |
onConnectionEvent | (data: DeviceConnectionEvent) => void | Optional. — |
device | Device | — |
destroy | (): void | — |
disconnect | (): Promise<void> | Stops this device's subscriptions and closes its BLE connection. |
connect | (): Promise<void> | — |
Learn the workflow
Continue with Bluetooth for the workflow context and examples.