in my apk code ,I use
try {
mGatt.disconnect();
LogUtil.e(TAG, "+++++++ mGatt is disconnect suc");
} catch (Exception e) {
LogUtil.e(TAG, "+++++++ mGatt is disconnect fail");
}
mGatt.close();
mGatt = null;
sometimes my apk can't disconnect success with my nrf51822