Skip to main content

Aoj20aDevice

AOJ-20A driver with clock sync, offline history and named device errors.

Kind: Class
Package: @ovok/native

Import​

import { Aoj20aDevice } from '@ovok/native/bt-management';

TypeScript signatures​

(device: Device, params: CreateDeviceParams<IntegratedDevices.AOJ20A>): Aoj20aDevice
ParameterTypeDetails
deviceDevice—
paramsCreateDeviceParams<IntegratedDevices.AOJ20A>—

Returns: Aoj20aDevice.

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.