Hello,
I have modified the nRFUART App for Android in order to connect and receive notifications from two different radinos nRF8001. There is no problem to establish the connection with the peripherals but I cannot enable the notifications from the second one. Instead I get the following warning:
D/App﹕ Trying to create a new connection.
D/modifycpuclass﹕ ------------------------>classname = com.example.proves.caminadorBLE.MainActivity
D/BluetoothGatt﹕ onClientRegistered() - status=0 clientIf=2
D/BluetoothDevice﹕ mAddress: C3:EE:DD:D5:E8:CB
D/BluetoothGatt﹕ onClientConnectionState() - status=0 clientIf=2 device=C3:EE:DD:D5:E8:CB
D/BluetoothDevice﹕ mAddress: C3:EE:DD:D5:E8:CB
D/BluetoothDevice﹕ mAddress: C3:EE:DD:D5:E8:CB
D/BluetoothGatt﹕ discoverServices() - device: C3:EE:DD:D5:E8:CB
D/BluetoothDevice﹕ mAddress: C3:EE:DD:D5:E8:CB
D/BluetoothGatt﹕ onClientConnectionState() - status=0 clientIf=1 device=C3:EE:DD:D5:E8:CB
D/BluetoothDevice﹕ mAddress: F5:8B:DF:1F:95:B0
W/BluetoothGatt﹕ onClientConnectionState() - !address.equals(mDevice.getAddress())
D/BluetoothGatt﹕ onGetService() - Device=C3:EE:DD:D5:E8:CB UUID=00001800-0000-1000-8000-00805f9b34fb
D/BluetoothDevice﹕ mAddress: C3:EE:DD:D5:E8:CB
It seems that in onClientConnectionState it keeps the other device instead of the new connection.
I am using one BluetoothGatt and BluetoothGattCallback and also a BluetoothDevice instance for each peripheral. Data is passed to main activity with a local broadcast.
Thanks in advance.