Skip to main content

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
ParameterTypeDetails
deviceDevice—
paramsCreateDeviceParams<CustomDeviceId>—

Returns: VerovalDuoControlDevice.

Public members​

MemberTypeDetails
idstring—
deviceDataDeviceData—
onError(error: BleError | Error | string) => voidOptional. —
onDeviceStatusChanged(status: DeviceStatus, measurementTypeKey?: MeasurementTypeKey) => voidOptional. —
onResult(data: MeasurementWithCaseType<MeasurementTypeForDevices<[ T ]>>) => voidOptional. —
onDeviceDisconnected() => voidOptional. —
onConnectionEvent(data: DeviceConnectionEvent) => voidOptional. —
deviceDevice—
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.

Source​

View the declaration in the SDK source.