Microchip® Advanced Software Framework

sdp_client.h File Reference
#include "btstack_config.h"
#include "btstack_util.h"

Data Structures

struct  de_state
 

Typedefs

typedef struct de_state de_state_t
 

Functions

void de_state_init (de_state_t *state)
 
int de_state_size (uint8_t eventByte, de_state_t *de_state)
 
uint8_t sdp_client_query (btstack_packet_handler_t callback, bd_addr_t remote, const uint8_t *des_service_search_pattern, const uint8_t *des_attribute_id_list)
 Queries the SDP service of the remote device given a service search pattern and a list of attribute IDs. More...
 
uint8_t sdp_client_query_uuid128 (btstack_packet_handler_t callback, bd_addr_t remote, const uint8_t *uuid128)
 
uint8_t sdp_client_query_uuid16 (btstack_packet_handler_t callback, bd_addr_t remote, uint16_t uuid16)
 
int sdp_client_ready (void)
 Checks if the SDP Client is ready. More...
 
uint8_t sdp_client_service_attribute_search (btstack_packet_handler_t callback, bd_addr_t remote, uint32_t search_service_record_handle, const uint8_t *des_attributeIDList)
 Retrieves all attribute IDs of a SDP record specified by its service record handle and a list of attribute IDs. More...
 
uint8_t sdp_client_service_search (btstack_packet_handler_t callback, bd_addr_t remote, const uint8_t *des_service_search_pattern)
 Query the list of SDP records that match a given service search pattern. More...
 

typedef struct de_state de_state_t

void de_state_init ( de_state_t state)
int de_state_size ( uint8_t  eventByte,
de_state_t de_state 
)
uint8_t sdp_client_query ( btstack_packet_handler_t  callback,
bd_addr_t  remote,
const uint8_t *  des_service_search_pattern,
const uint8_t *  des_attribute_id_list 
)

Queries the SDP service of the remote device given a service search pattern and a list of attribute IDs.

The remote data is handled by the SDP parser. The SDP parser delivers attribute values and done event via the callback.

Parameters
callbackfor attributes values and done event
remoteaddress
des_service_search_pattern
des_attribute_id_list
uint8_t sdp_client_query_uuid128 ( btstack_packet_handler_t  callback,
bd_addr_t  remote,
const uint8_t *  uuid128 
)
uint8_t sdp_client_query_uuid16 ( btstack_packet_handler_t  callback,
bd_addr_t  remote,
uint16_t  uuid16 
)
int sdp_client_ready ( void  )

Checks if the SDP Client is ready.

Returns
1 when no query is active
uint8_t sdp_client_service_attribute_search ( btstack_packet_handler_t  callback,
bd_addr_t  remote,
uint32_t  search_service_record_handle,
const uint8_t *  des_attributeIDList 
)

Retrieves all attribute IDs of a SDP record specified by its service record handle and a list of attribute IDs.

The remote data is handled by the SDP parser. The SDP parser delivers attribute values and done event via the callback.

Note
only provided if ENABLE_SDP_EXTRA_QUERIES is defined
Parameters
callbackfor attributes values and done event
remoteaddress
search_service_record_handle
des_attributeIDList
uint8_t sdp_client_service_search ( btstack_packet_handler_t  callback,
bd_addr_t  remote,
const uint8_t *  des_service_search_pattern 
)

Query the list of SDP records that match a given service search pattern.

The remote data is handled by the SDP parser. The SDP parser delivers attribute values and done event via the callback.

Note
only provided if ENABLE_SDP_EXTRA_QUERIES is defined
Parameters
callbackfor attributes values and done event
remoteaddress
des_service_search_pattern