We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fc18853 + 3a6b799 commit 6b5627eCopy full SHA for 6b5627e
lib/dfu/src/main/java/no/nordicsemi/android/dfu/DfuBaseService.java
@@ -981,7 +981,9 @@ public void onServiceChanged(@NonNull final BluetoothGatt gatt) {
981
logi("Service Changed indication received");
982
sendLogBroadcast(LOG_LEVEL_INFO, "Service Changed indication received");
983
mConnectionState = STATE_CONNECTED;
984
- discoverServices(gatt);
+ // Apparently, adding a delay here solves a connectivity issue for micro:bit v1.
985
+ // See: https://github.com/NordicSemiconductor/Android-DFU-Library/issues/500
986
+ mHandler.postDelayed(() -> discoverServices(gatt), 1000); // minimum 550 ms
987
}
988
989
/**
0 commit comments