send Upgrade Info To Device
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)
state Callback
The callback for handling sensor state during the process