in android program i disconnect from my gat with this code
while(isconnected){
mbluetoothGatt.disconnect();
Log.d(TAG, "Disconnecttodevice: ");
}
mbluetoothGatt.close();
Log.d(TAG, "close the gatt connection: ");
why the event BLE_GAP_EVT_DISCONNECTED: is not trigering it sometimes triger but most of the time its not trigering