Filter Beacon Devices

macirtr
Posts: 2
Joined: Tue May 15, 2018 5:45 pm

Filter Beacon Devices

Postby macirtr » Thu May 17, 2018 9:27 pm

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.

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: Filter Beacon Devices

Postby chegewara » Sat May 19, 2018 7:23 am

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.

Who is online

Users browsing this forum: No registered users and 70 guests