Bluetooth: Shell: BR: Update command sdp-find
Since the function `bt_sdp_discover` has been updated, the caller of function needs to be updated to avoid the building and functionality fault. Add set the parameter `type` to value `BT_SDP_DISCOVER_SERVICE_SEARCH_ATTR`. Update the SDP discovery callback function. Make it align with `bt_sdp_discover_func_t`. Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
This commit is contained in:
parent
a047113556
commit
d37402f447
1 changed files with 6 additions and 2 deletions
|
@ -370,7 +370,8 @@ static int cmd_oob(const struct shell *sh, size_t argc, char *argv[])
|
|||
}
|
||||
|
||||
static uint8_t sdp_hfp_ag_user(struct bt_conn *conn,
|
||||
struct bt_sdp_client_result *result)
|
||||
struct bt_sdp_client_result *result,
|
||||
const struct bt_sdp_discover_params *params)
|
||||
{
|
||||
char addr[BT_ADDR_STR_LEN];
|
||||
uint16_t param, version;
|
||||
|
@ -429,7 +430,8 @@ done:
|
|||
}
|
||||
|
||||
static uint8_t sdp_a2src_user(struct bt_conn *conn,
|
||||
struct bt_sdp_client_result *result)
|
||||
struct bt_sdp_client_result *result,
|
||||
const struct bt_sdp_discover_params *params)
|
||||
{
|
||||
char addr[BT_ADDR_STR_LEN];
|
||||
uint16_t param, version;
|
||||
|
@ -494,12 +496,14 @@ done:
|
|||
}
|
||||
|
||||
static struct bt_sdp_discover_params discov_hfpag = {
|
||||
.type = BT_SDP_DISCOVER_SERVICE_SEARCH_ATTR,
|
||||
.uuid = BT_UUID_DECLARE_16(BT_SDP_HANDSFREE_AGW_SVCLASS),
|
||||
.func = sdp_hfp_ag_user,
|
||||
.pool = &sdp_client_pool,
|
||||
};
|
||||
|
||||
static struct bt_sdp_discover_params discov_a2src = {
|
||||
.type = BT_SDP_DISCOVER_SERVICE_SEARCH_ATTR,
|
||||
.uuid = BT_UUID_DECLARE_16(BT_SDP_AUDIO_SOURCE_SVCLASS),
|
||||
.func = sdp_a2src_user,
|
||||
.pool = &sdp_client_pool,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue