@@ -352,7 +352,7 @@ void BLEAdvertisementData::setCompleteServices(BLEUUID uuid) {
352352 switch (uuid.bitSize ()) {
353353 case 16 :
354354 {
355- // [Len] [0x02 ] [LL] [HH]
355+ // [Len] [0x03 ] [LL] [HH]
356356 cdata[0 ] = 3 ;
357357 cdata[1 ] = ESP_BLE_AD_TYPE_16SRV_CMPL; // 0x03
358358 addData (String (cdata, 2 ) + String ((char *)&uuid.getNative ()->uuid .uuid16 , 2 ));
@@ -361,7 +361,7 @@ void BLEAdvertisementData::setCompleteServices(BLEUUID uuid) {
361361
362362 case 32 :
363363 {
364- // [Len] [0x04 ] [LL] [LL] [HH] [HH]
364+ // [Len] [0x05 ] [LL] [LL] [HH] [HH]
365365 cdata[0 ] = 5 ;
366366 cdata[1 ] = ESP_BLE_AD_TYPE_32SRV_CMPL; // 0x05
367367 addData (String (cdata, 2 ) + String ((char *)&uuid.getNative ()->uuid .uuid32 , 4 ));
@@ -370,7 +370,7 @@ void BLEAdvertisementData::setCompleteServices(BLEUUID uuid) {
370370
371371 case 128 :
372372 {
373- // [Len] [0x04 ] [0] [1] ... [15]
373+ // [Len] [0x07 ] [0] [1] ... [15]
374374 cdata[0 ] = 17 ;
375375 cdata[1 ] = ESP_BLE_AD_TYPE_128SRV_CMPL; // 0x07
376376 addData (String (cdata, 2 ) + String ((char *)uuid.getNative ()->uuid .uuid128 , 16 ));
@@ -453,7 +453,7 @@ void BLEAdvertisementData::setPartialServices(BLEUUID uuid) {
453453
454454 case 128 :
455455 {
456- // [Len] [0x04 ] [0] [1] ... [15]
456+ // [Len] [0x06 ] [0] [1] ... [15]
457457 cdata[0 ] = 17 ;
458458 cdata[1 ] = ESP_BLE_AD_TYPE_128SRV_PART; // 0x06
459459 addData (String (cdata, 2 ) + String ((char *)&uuid.getNative ()->uuid .uuid128 , 16 ));
0 commit comments