SensorLegacyConnection

Represents a connection to a legacy Efento sensor (software version 6 and earlier).

Properties

Link copied to clipboard

Commands for cellular legacy Efento sensors

Link copied to clipboard

Commands for all legacy Efento sensors

Link copied to clipboard
abstract var encryptionKey: String

Encryption key which is used to exchange data with encrypted sensor.

Link copied to clipboard
abstract val isConnected: Boolean

Checks if the connection is initialized and established. Returns true if the connection is active, false otherwise.

Link copied to clipboard

Notifications sent by legacy sensor

Link copied to clipboard
abstract var resetCode: Int

Device reset code is required for running some commands . Can be found on a device's sticker.

Functions

Link copied to clipboard
abstract suspend fun connect()

Establishes and initializes a new connection. Throws BluetoothConnectionException if there is already an active connection to the device.

Link copied to clipboard
abstract suspend fun disconnect()

Terminates the existing connection. Throws BluetoothConnectionException if an attempt is made to disconnect from a device that was not previously connected.