Merge branch 'bugfix/fix_sdp_compatibility' into 'master'
Bugfix/fix sdp compatibility See merge request espressif/esp-idf!33442
This commit is contained in:
@@ -340,15 +340,13 @@ static void esp_hdl_sdp_cb_evt(uint16_t event, void *p_param)
|
||||
ESP_LOGI(SDP_TAG, "ESP_SDP_INIT_EVT: status:%d", sdp_param->init.status);
|
||||
if (sdp_param->init.status == ESP_SDP_SUCCESS) {
|
||||
record.hdr.type = ESP_SDP_TYPE_RAW;
|
||||
record.hdr.uuid.len = sizeof(UUID_UNKNOWN);
|
||||
memcpy(record.hdr.uuid.uuid.uuid128, UUID_UNKNOWN, sizeof(UUID_UNKNOWN));
|
||||
record.hdr.service_name_length = strlen(sdp_service_name) + 1;
|
||||
record.hdr.service_name = sdp_service_name;
|
||||
record.hdr.rfcomm_channel_number = BT_UNUSED_RFCOMM;
|
||||
record.hdr.l2cap_psm = BT_L2CAP_DYNMIC_PSM;
|
||||
record.hdr.profile_version = BT_UNKONWN_PROFILE_VERSION;
|
||||
record.uuid.len = sizeof(UUID_UNKNOWN);
|
||||
memcpy(record.uuid.uuid.uuid128, UUID_UNKNOWN, sizeof(UUID_UNKNOWN));
|
||||
record.user1_ptr = NULL;
|
||||
record.user1_ptr_len = 0;
|
||||
esp_sdp_create_record((esp_bluetooth_sdp_record_t *)&record);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -250,15 +250,13 @@ static void esp_hdl_sdp_cb_evt(uint16_t event, void *p_param)
|
||||
ESP_LOGI(SDP_TAG, "ESP_SDP_INIT_EVT: status:%d", sdp_param->init.status);
|
||||
if (sdp_param->init.status == ESP_SDP_SUCCESS) {
|
||||
record.hdr.type = ESP_SDP_TYPE_RAW;
|
||||
record.hdr.uuid.len = sizeof(UUID_UNKNOWN);
|
||||
memcpy(record.hdr.uuid.uuid.uuid128, UUID_UNKNOWN, sizeof(UUID_UNKNOWN));
|
||||
record.hdr.service_name_length = strlen(sdp_service_name) + 1;
|
||||
record.hdr.service_name = sdp_service_name;
|
||||
record.hdr.rfcomm_channel_number = BT_UNUSED_RFCOMM;
|
||||
record.hdr.l2cap_psm = BT_L2CAP_DYNMIC_PSM;
|
||||
record.hdr.profile_version = BT_UNKONWN_PROFILE_VERSION;
|
||||
record.uuid.len = sizeof(UUID_UNKNOWN);
|
||||
memcpy(record.uuid.uuid.uuid128, UUID_UNKNOWN, sizeof(UUID_UNKNOWN));
|
||||
record.user1_ptr = NULL;
|
||||
record.user1_ptr_len = 0;
|
||||
esp_sdp_create_record((esp_bluetooth_sdp_record_t *)&record);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user