This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

in android BLE,i use mGatt.disconnect &mGatt.close() can't disconnect with nrf51822

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

Related