Page 1 of 1

Filter Beacon Devices

Posted: Thu May 17, 2018 9:27 pm
by macirtr
Hello;

I am developing bluetooth application with arduino ide and esp32 ble development board.
And i use https://github.com/nkolban/ESP32_BLE_Ar ... s/BLE_scan code.

Mr. Kolban has developed a great application.

Need a little help.
Beacon searching run every second and I want to list devices only which starts with "A1" for UUID info. (like A1XXXX-XXXX-XXX...)

Now i can filter onResult(BLEAdvertisedDevice advertisedDevice) void but i didn't find any solution during the scan. I think if i can make filter before onresult void, maybe scan proccess run speedly.

How can i do it?

Thanks.

Re: Filter Beacon Devices

Posted: Sat May 19, 2018 7:23 am
by chegewara
As you can see here you can compare serviceUUID with some value:
https://github.com/nkolban/ESP32_BLE_Ar ... nt.ino#L78

Instead equals you can also use different string comparing functions.