16 bit service uuids in esp_ble_gap_config_adv_data

jumjum123
Posts: 199
Joined: Mon Oct 17, 2016 3:11 pm

16 bit service uuids in esp_ble_gap_config_adv_data

Postby jumjum123 » Mon Nov 20, 2017 3:36 pm

Is there a way to use 16 bit uuids for esp_ble_gap_config_adv_data ?
If not, whats the best option to convert 16 bit uuids to 128 bit uuid, is there any call in esp-idf ?

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

Re: 16 bit service uuids in esp_ble_gap_config_adv_data

Postby kolban » Sat Mar 10, 2018 11:52 pm

My notes seem to show that an esp_bt_uuid_t is a structure that contains a len field (ESP_UUID_LEN_16, ESP_UUID_LEN_32, ESP_UUID_LEN_128) and a union structure of either uuid16, uuid32 or uuid128. Thus when passing around service UUIDs, I think the intent is to pass around instance of esp_bt_uuid_t which also includes the size of the UUID as well as its value.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

Who is online

Users browsing this forum: ESP_Roland, ESP_rrtandler and 117 guests