Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cb83cda

Browse filesBrowse files
Fix comments for AD types in advertising (#10512)
1 parent 3502b9c commit cb83cda
Copy full SHA for cb83cda

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎libraries/BLE/src/BLEAdvertising.cpp

Copy file name to clipboardExpand all lines: libraries/BLE/src/BLEAdvertising.cpp
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.