Open vngo15 opened 2 years ago
After writing 0x01 the device should reply with an indication with value 0x200101 and restart in bootloader mode. The library is waiting for the reply and disconnection event. Please, check why that never happens in the device side. Perhaps you need to restart Bluetooth, as the handle numbers may be cached, before doing the update?
We are trying to implement the dfu update on one of our devices. During our testing phase, we discovered that the dfu state sometime got stuck on the "Enabling DFU Mode." We had tried the following:
The only thing that seems to help is restarting the app and/or the device
Here is our code for starting the firmware update process:
Successful DFU update log:
Stuck DFU log:
Any pointers would be super helpful