BloodGlucoseDevice
Decodes the legacy TaiDoc, GlucoCheck Gold and TeleBGM glucose protocols.
Kind: Class
Package: @ovok/native
Import
import { BloodGlucoseDevice } from '@ovok/native/bt-management';
TypeScript signatures
(device: Device, params: CreateDeviceParams<GlucoseDevice>): BloodGlucoseDevice
| Parameter | Type | Details |
|---|---|---|
device | Device | — |
params | CreateDeviceParams<GlucoseDevice> | — |
Returns: BloodGlucoseDevice.
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.