sendUpgradeInfoToDevice

fun sendUpgradeInfoToDevice(owner: LifecycleOwner, device: BleDevice?, model: String?, version: String?, url: String?, stateCallback: SensorStateCallback)

Sends upgrade information to a Bluetooth device

Parameters

owner

The LifecycleOwner used to manage the lifecycle of the sending process

device

The target Bluetooth device

model

The device model (optional)

version

The version number (optional)

url

The URL of the upgrade file (optional)

stateCallback

The callback for handling sensor state during the process