forked from espressif/esp-idf
Merge branch 'bugfix/btdm_add_profile_descriptor_list_for_spp_v3.1' into 'release/v3.1'
component/bt: Add profile descriptor list for SPP(backport 3.1) See merge request idf/esp-idf!3602
This commit is contained in:
@@ -958,6 +958,14 @@ static bool create_base_record(const uint32_t sdp_handle, const char *name, cons
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage = "profile_descriptor_list";
|
||||||
|
if (!SDP_AddProfileDescriptorList(sdp_handle, UUID_SERVCLASS_SERIAL_PORT, SPP_VERSION)){
|
||||||
|
APPL_TRACE_ERROR("create_base_record: failed to create base service "
|
||||||
|
"record, stage: %s, scn: %d, name: %s, with_obex: %d",
|
||||||
|
stage, channel, name, with_obex);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
// Add the name to the SDP record.
|
// Add the name to the SDP record.
|
||||||
if (name[0] != '\0') {
|
if (name[0] != '\0') {
|
||||||
stage = "service_name";
|
stage = "service_name";
|
||||||
|
@@ -37,6 +37,8 @@
|
|||||||
** Constants
|
** Constants
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
|
#define SPP_VERSION 0x0102
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
/* these events are handled by the state machine */
|
/* these events are handled by the state machine */
|
||||||
BTA_JV_API_ENABLE_EVT = BTA_SYS_EVT_START(BTA_ID_JV),
|
BTA_JV_API_ENABLE_EVT = BTA_SYS_EVT_START(BTA_ID_JV),
|
||||||
|
Reference in New Issue
Block a user