mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-18 01:13:50 +00:00
29 lines
1.0 KiB
TeX
29 lines
1.0 KiB
TeX
% !TEX root = btstack_gettingstarted.tex
|
|
\section{SDP RFCOMM Query}
|
|
\label{appendix:api_sdp_queries}
|
|
$ $
|
|
\begin{lstlisting}
|
|
// SDP Query RFCOMM event to deliver channel number and service name
|
|
// byte by byte.
|
|
typedef struct sdp_query_rfcomm_service_event {
|
|
uint8_t type;
|
|
uint8_t channel_nr;
|
|
uint8_t * service_name;
|
|
} sdp_query_rfcomm_service_event_t;
|
|
|
|
// Registers a callback to receive RFCOMM service and query complete
|
|
// event.
|
|
void sdp_query_rfcomm_register_callback(void(*sdp_app_callback)(sdp_query_event_t * event, void * context), void * context);
|
|
|
|
void sdp_query_rfcomm_deregister_callback();
|
|
|
|
// Searches SDP records on a remote device for RFCOMM services with
|
|
// a given UUID.
|
|
void sdp_query_rfcomm_channel_and_name_for_uuid(bd_addr_t remote, uint16_t uuid);
|
|
|
|
// Searches SDP records on a remote device for RFCOMM services with
|
|
// a given service search pattern.
|
|
void sdp_query_rfcomm_channel_and_name_for_search_pattern(bd_addr_t remote, uint8_t * des_serviceSearchPattern);
|
|
\end{lstlisting}
|
|
\pagebreak
|