Retreiving UUIDs of iBeacons

TheRochVoices
Posts: 2
Joined: Wed Jul 26, 2017 12:15 pm

Retreiving UUIDs of iBeacons

Postby TheRochVoices » Thu Sep 14, 2017 10:57 pm

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.

f.h-f.s.
Posts: 180
Joined: Thu Dec 08, 2016 2:53 pm

Re: Retreiving UUIDs of iBeacons

Postby f.h-f.s. » Thu Oct 05, 2017 9:56 am

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)

User avatar
kolban
Posts: 1087
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: Retreiving UUIDs of iBeacons

Postby kolban » Thu Oct 05, 2017 1:26 pm

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
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

Who is online

Users browsing this forum: BIBA.BUTZEMANN, johanan and 9 guests