@@ -352,7 +352,7 @@ void BLEAdvertisementData::setCompleteServices(BLEUUID uuid) {
352
352
switch (uuid.bitSize ()) {
353
353
case 16 :
354
354
{
355
- // [Len] [0x02 ] [LL] [HH]
355
+ // [Len] [0x03 ] [LL] [HH]
356
356
cdata[0 ] = 3 ;
357
357
cdata[1 ] = ESP_BLE_AD_TYPE_16SRV_CMPL; // 0x03
358
358
addData (String (cdata, 2 ) + String ((char *)&uuid.getNative ()->uuid .uuid16 , 2 ));
@@ -361,7 +361,7 @@ void BLEAdvertisementData::setCompleteServices(BLEUUID uuid) {
361
361
362
362
case 32 :
363
363
{
364
- // [Len] [0x04 ] [LL] [LL] [HH] [HH]
364
+ // [Len] [0x05 ] [LL] [LL] [HH] [HH]
365
365
cdata[0 ] = 5 ;
366
366
cdata[1 ] = ESP_BLE_AD_TYPE_32SRV_CMPL; // 0x05
367
367
addData (String (cdata, 2 ) + String ((char *)&uuid.getNative ()->uuid .uuid32 , 4 ));
@@ -370,7 +370,7 @@ void BLEAdvertisementData::setCompleteServices(BLEUUID uuid) {
370
370
371
371
case 128 :
372
372
{
373
- // [Len] [0x04 ] [0] [1] ... [15]
373
+ // [Len] [0x07 ] [0] [1] ... [15]
374
374
cdata[0 ] = 17 ;
375
375
cdata[1 ] = ESP_BLE_AD_TYPE_128SRV_CMPL; // 0x07
376
376
addData (String (cdata, 2 ) + String ((char *)uuid.getNative ()->uuid .uuid128 , 16 ));
@@ -453,7 +453,7 @@ void BLEAdvertisementData::setPartialServices(BLEUUID uuid) {
453
453
454
454
case 128 :
455
455
{
456
- // [Len] [0x04 ] [0] [1] ... [15]
456
+ // [Len] [0x06 ] [0] [1] ... [15]
457
457
cdata[0 ] = 17 ;
458
458
cdata[1 ] = ESP_BLE_AD_TYPE_128SRV_PART; // 0x06
459
459
addData (String (cdata, 2 ) + String ((char *)&uuid.getNative ()->uuid .uuid128 , 16 ));
0 commit comments