hibernationConnection

fun hibernationConnection(deviceID: DeviceID, bluetoothMacAddress: BluetoothMacAddress, resetCode: Int = -1): HibernationConnection

Creates and configures a HibernationConnection instance for Efento sensor in forced hibernation mode. This method prepares the parameters required for establishing a connection, but does not initiate the connection itself. Use this for sensors scanned as SensorInHibernation with SensorInHibernation.HibernationMode.FORCED.

Return

HibernationConnection implementation used connect, disconnect and run commands on Efento device.

Parameters

deviceID

unique identifier of device returned in scanning.

bluetoothMacAddress

device bluetooth mac address.

resetCode

device reset code is required for running some commands . Can be found on a device's sticker. Can be updated via HibernationConnection.resetCode