Open kinber95 opened 3 years ago
Update:
So I can tell clearly what the problem occurs because of the keeBond(false) setting. When I start my dfu without a bonding, the nordic library creates a bond for me but after the dfu update finished, it has problems to remove the bonding. When I remove it manually, the onDfuCompleted() callback is called.
When I connect and don't bond to my device, the dfu onDfuCompleted() callback method would not be called, but the dfu update finished successfully. But when I connect and immediately bond my device all works fine.
Edit: Okay currently its also happen when I bond before to my device, I think this error depends on the setKeepBond() method, because the Foreground Service still show uploading/disconnecting when the bonding is removed. Maybe the process get stuck.
My
DfuServiceInitiator
Settings - >Logs