Page 1 of 1

Retreiving UUIDs of iBeacons

Posted: Thu Sep 14, 2017 10:57 pm
by TheRochVoices
I've been searching a lot online regarding retrieving UUIDs of the beacons nearby. I can get the MAC address of the beacons but not the UUID. Does anyone have an example or links that can help me get the UUID of the nearby iBeacons.

Re: Retreiving UUIDs of iBeacons

Posted: Thu Oct 05, 2017 9:56 am
by f.h-f.s.
You are getting the MAC addresses in a GAP callback case ESP_GAP_SEARCH_INQ_RES_EVT right? And have access to the variable "esp_ble_gap_cb_param_t result". The inquiry "result" contains "scan_rst"(See esp_gap_ble_api.h#490), which contains the advertisment "ble_adv". You can resolve that advertisement to a UUID with the function "esp_ble_resolve_adv_data" (See esp_gap_ble_api.h#770)

Re: Retreiving UUIDs of iBeacons

Posted: Thu Oct 05, 2017 1:26 pm
by kolban
If you are willing to use C++, there is a sample BLE scanner here that should work as a sample:

https://github.com/nkolban/esp32-snippe ... leScan.cpp

Documentation also available here:

https://github.com/nkolban/esp32-snippe ... 0Guide.pdf