]> granicus.if.org Git - esp-idf/commitdiff
component/bt : gatt server table fix uuid discovery bug
authorTian Hao <tianhao@espressif.com>
Thu, 12 Jan 2017 08:25:09 +0000 (16:25 +0800)
committerTian Hao <tianhao@espressif.com>
Thu, 12 Jan 2017 08:25:09 +0000 (16:25 +0800)
components/bt/bluedroid/btc/profile/std/gatt/btc_gatts.c

index a5631f5b7a299b477a9d2ee12bd8502e7d1aded9..2ba3ec0f143b58cc19d110feb60a61a97dfcef32 100644 (file)
@@ -203,8 +203,8 @@ static void btc_gatts_act_create_attr_tab(esp_gatts_attr_db_t *gatts_attr_db,
                 esp_gatt_srvc_id_t        esp_srvc_id;
 
                 esp_srvc_id.id.inst_id = srvc_inst_id;
-                btc_gatts_uuid_format_convert(&esp_srvc_id.id.uuid,gatts_attr_db[i].att_desc.uuid_length,
-                                              gatts_attr_db[i].att_desc.uuid_p);
+                btc_gatts_uuid_format_convert(&esp_srvc_id.id.uuid,gatts_attr_db[i].att_desc.length,
+                                              gatts_attr_db[i].att_desc.value);
     
                 btc_to_bta_srvc_id(&srvc_id, &esp_srvc_id);
                 BTA_GATTS_CreateService(gatts_if, &srvc_id.id.uuid,