Probe

interface Probe

Base class of the bluetooth measurement instruments.

Inheritors

MfHandle
PlungeIrProbe
QsrHandle

Properties

Link copied to clipboard
abstract val type: ProbeType

Type of the probe object.

Functions

Link copied to clipboard
abstract fun deactivateNotification(measType: MeasType)

Unregister notifications for a given measType

Link copied to clipboard
abstract fun disconnect()

Disconnects the device. To connect to the device again you have to create a new probe object.

Link copied to clipboard
abstract fun getBatteryLevel(): Float

Gets the battery level of the measurement instrument.

Link copied to clipboard
abstract fun getDeviceId(): String

Gets the id of the measurement instrument.

Link copied to clipboard
abstract fun getMeasTypes(): List<MeasType>

Returns a list of available MeasType for this probe.

Link copied to clipboard
abstract fun getSerial(): ULong

Gets the serial number of the measurement instrument.

Link copied to clipboard
abstract fun isDeviceAvailable(): Boolean

Checks if the connection to the device exists.

Link copied to clipboard
abstract fun subscribeNotification(measType: MeasType, notifyFunction: NotifyFunction)

Registers a callback function to receive measurement data of the measurement instrument.