esp32-snippets icon indicating copy to clipboard operation
esp32-snippets copied to clipboard

Can't count devices (foundDevices.getCount() doesn't work

Open hendrijunianto opened this issue 4 years ago • 3 comments

Please help me, I do scanning for Bluetooth device with my esp32, as seen in the picture there are 2 devices founded but why the "device found" count still 0? Thanks in advance. image image

hendrijunianto avatar Mar 20 '21 09:03 hendrijunianto

I'm getting the same problem. Its related to this: https://stackoverflow.com/questions/66755676/ble-scanner-device-found-0

Either dont use AdvertisedDeviceCallbacks or use a different version of the library it looks like.

Subcode avatar Jun 26 '21 00:06 Subcode

Down grade your board to version 1.0.4, it works for me

hendrijunianto avatar Jun 26 '21 13:06 hendrijunianto

You cant use AdvertisedDeviceCallbacks and getCount at the same time. Either dont use getCount, or dont use the callback.

Subcode avatar Jun 26 '21 17:06 Subcode