stopSensorUpgrade

fun stopSensorUpgrade(lifecycleOwner: LifecycleOwner, bleDevice: BleDevice?, callback: StopUpgradeCallback)

Stops the sensor firmware upgrade process for the specified BLE device.

This method wraps the provided StopUpgradeCallback with a LifecycleStopUpgradeCallback to ensure callbacks are only invoked when the given LifecycleOwner is in an active state.

Parameters

callback

The callback to notify when the stop upgrade request is completed or failed.