NordicSemiconductor / Android-nRF-Toolbox

The nRF Toolbox is a container app that stores your Nordic Semiconductor apps for Bluetooth Low Energy in one location.
https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Toolbox
BSD 3-Clause "New" or "Revised" License
1.07k stars 461 forks source link

Check Uart is supported or not before Connecting to a Device. #81

Closed ethanHuntoo7 closed 4 years ago

ethanHuntoo7 commented 4 years ago

The Scanning List in UART section showing many nearby devices in Scanning list. I Just don't want to blindly Connect to a device. First I want to check whether it supports Uart services or not. and Second whether it contains the service UUID that also Contained by the peripheral device(same as mine have in app). What Actually happening Right now is that the App try to connect with the blindly selected device from the scanning list and then it try to connect with it for too long and end up with connection time out and then gatt.close and then in the Error listener. I don't want to wait for that Error listener triggered. I want to stop user and dismiss Connection or stop connecting to the peripheral before trying to connecting to it.

philips77 commented 4 years ago

Hi, please ask your question on DevZone or Stack Overflow. I'm closing the issue as it's not related to the app, but rather general Bluetooth Le one.