esp32-snippets
esp32-snippets copied to clipboard
Can't count devices (foundDevices.getCount() doesn't work
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.

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.
Down grade your board to version 1.0.4, it works for me
You cant use AdvertisedDeviceCallbacks and getCount at the same time. Either dont use getCount, or dont use the callback.