ESP32S3 : Questions concerning Bluedroid API.

ThomasESP32
Posts: 229
Joined: Thu Jul 14, 2022 5:15 am

ESP32S3 : Questions concerning Bluedroid API.

Postby ThomasESP32 » Thu Mar 02, 2023 11:17 am

Good morning,
I am using the Bluedroid API in my application and I have some questions about it.
Could you please give me the answers ?

1) What is the difference between esp_ble_gattc_search_service and esp_ble_gattc_get_service in the CLIENT API ?
I understand the they are used to search services in the client Local DB but I don't understand the differences between them.

2) What is the functions that I can call from my client device in order to discover the services and the characteristics of
a remote server device please ?
I can see the esp_ble_gattc_cache_refresh function but I do not understand how it works.
I can see in the esp_ble_gattc_get_service description that I can use the esp_ble_gattc_cache_refresh, then the esp_ble_gattc_get_service... Could you explain me more precisely what do these functions do ?

3) Can you explain me the esp_ble_gattc_cache_assoc function more precisely with an example or something please ?

4) The same thing for esp_ble_gattc_cache_get_addr_list and esp_ble_gattc_cache_clean ?

With an example or something I would have the possibility to understand the client api more precisely.

5) I can see the following events :
ESP_GATTC_DISC_SRVC_CMPL_EVT
ESP_GATTC_SEARCH_RES_EVT
ESP_GATTC_SEARCH_CMPL_EVT
I don't understand the differences between them. Could you explain me when they are called and why ?
Do I have to call some functions before these events arrive ?

Thank you for your help.

Best regards,

Thomas TRUILHE

Who is online

Users browsing this forum: Gaston1980 and 82 guests