[BUG][Android] UpdateManager doesn't close the Bluetooth connection after success update firmware
Closed this issue · 0 comments
wcoder commented
Steps
- Connect to BLE device via flutter_reactive_ble library
- Start updating process via
updateManager.update(firmwareScheme)
call - Receive the
FirmwareUpgradeState.success
event - Close flutter_reactive_ble if still active
- Call
updateManager.kill()
Actual
The BLE connection with the device is still active.
Expected
UpdateManager releases all used resources and connections especially, after updateManager.kill()
call.
Possible solution
Based on NordicSemiconductor/Android-nRF-Connect-Device-Manager#16 (comment) the solution can be reset command or release BLE transport.
Environment
- Flutter 3.10.6
- mcumgr_flutter latest master
- Android 12
- Zephyr custom device