Android Question BLE Connection issue

Scantech

Well-Known Member
Licensed User
Longtime User
I was experimenting with BLE Devices nearby and found an Exception Fault when trying to connect. When i scanned, i found the device and set notify and write data which was successful. Then i disconnected and waited for 1 minute. I was using manager1.Connect2. I know the Mac Name, Mac ID, Service ID, Notify Char and Write Char. It will not connect.

The exception fault states i need to run Scan(Discoveries) before attempting to connect.

Is this rare case of device not connecting unless you run scan?
 

Scantech

Well-Known Member
Licensed User
Longtime User
You must always call Scan before you can connect to a device. You can pass the specific service UUID to limit it to devices that advertise the service.

I have notice with Samsung S6 calling manager1.Connect2 displays "Discovery" at the log? This is not my log. Does it attempt to do Discovery by calling Connect2?
 
Upvote 0
Top