Page 1 of 1

16 bit service uuids in esp_ble_gap_config_adv_data

Posted: Mon Nov 20, 2017 3:36 pm
by jumjum123
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 ?

Re: 16 bit service uuids in esp_ble_gap_config_adv_data

Posted: Sat Mar 10, 2018 11:52 pm
by kolban
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.