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.
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.