Skip to content

Commit

Permalink
Merge branch 'bugfix/btdm_add_profile_descriptor_list_for_spp' into '…
Browse files Browse the repository at this point in the history
…master'

component/bt: Add profile descriptor list for SPP

See merge request idf/esp-idf!2691
  • Loading branch information
jack0c committed Jul 13, 2018
2 parents 8571170 + d7c4ec5 commit 6554bdc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/bt/bluedroid/bta/jv/bta_jv_act.c
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,14 @@ static bool create_base_record(const uint32_t sdp_handle, const char *name, cons
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.
if (name[0] != '\0') {
stage = "service_name";
Expand Down
2 changes: 2 additions & 0 deletions components/bt/bluedroid/bta/jv/include/bta_jv_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
** Constants
*****************************************************************************/

#define SPP_VERSION 0x0102

enum {
/* these events are handled by the state machine */
BTA_JV_API_ENABLE_EVT = BTA_SYS_EVT_START(BTA_ID_JV),
Expand Down

0 comments on commit 6554bdc

Please sign in to comment.