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

An andoid phone connect to multiple ble devices

In my project, an android phone is needed to connect to two ble devices. All my ble devices are nrf51822. The android phone can connect to and receive data from every device respectively, but can't work when connecting to two devices at the same time. I created a BluetoothGatt object and a callback for each device as this thread devzone.nordicsemi.com/.../ said. The two connections were established, but the android phone could not receive the data from any device. I tested github.com/.../Android-nRF-Connect, it worked fine, but its code is not available! I even tried github.com/.../Android-nRF-Toolbox, but the Proximity Monitor could not find the two devices. Any suggestion? Should i connect in different Service or Thread?

Related