hibernation Connection
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
device ID
unique identifier of device returned in scanning.
bluetooth Mac Address
device bluetooth mac address.
reset Code
device reset code is required for running some commands . Can be found on a device's sticker. Can be updated via HibernationConnection.resetCode