Retreiving UUIDs of iBeacons
-
- Posts: 2
- Joined: Wed Jul 26, 2017 12:15 pm
Retreiving UUIDs of iBeacons
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
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
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
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: Baidu [Spider] and 113 guests