NordicSemiconductor/Flutter-nRF-Connect-Device-Manager

[BUG][Android] UpdateManager doesn't close the Bluetooth connection after success update firmware

Closed this issue · 0 comments

wcoder commented

Steps

  1. Connect to BLE device via flutter_reactive_ble library
  2. Start updating process via updateManager.update(firmwareScheme) call
  3. Receive the FirmwareUpgradeState.success event
  4. Close flutter_reactive_ble if still active
  5. 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