Skip to content

Commit 5ddbd49

Browse files
committed
SDP: use deviceName, not sdp_service_name. Set channel in record
1 parent c54f9a6 commit 5ddbd49

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Firmware/RTK_Everywhere/Bluetooth.ino

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,11 @@ void bluetoothStart()
526526
record.type = ESP_SDP_TYPE_RAW;
527527
record.uuid.len = sizeof(UUID_IAP2);
528528
memcpy(record.uuid.uuid.uuid128, UUID_IAP2, sizeof(UUID_IAP2));
529-
record.service_name_length = strlen(sdp_service_name) + 1;
530-
record.service_name = (char *)sdp_service_name;
529+
//record.service_name_length = strlen(sdp_service_name) + 1;
530+
//record.service_name = (char *)sdp_service_name;
531+
record.service_name_length = strlen(deviceName) + 1;
532+
record.service_name = (char *)deviceName;
533+
record.rfcomm_channel_number = 1;
531534
esp_sdp_create_record((esp_bluetooth_sdp_record_t *)&record);
532535
}
533536
}

0 commit comments

Comments
 (0)