diff --git a/src/hci.h b/src/hci.h index 64e3379d6..799f77ba5 100644 --- a/src/hci.h +++ b/src/hci.h @@ -159,6 +159,9 @@ extern "C" { // unregister SDP Service Record #define SDP_UNREGISTER_SERVICE_RECORD 0x31 +// Get remote RFCOMM services +#define SDP_CLIENT_QUERY_RFCOMM_SERVICES 0x32 + // RFCOMM "HCI" Commands #define RFCOMM_CREATE_CHANNEL 0x40 #define RFCOMM_DISCONNECT 0x41 diff --git a/src/hci_cmds.c b/src/hci_cmds.c index 4d78ee8db..39e559507 100644 --- a/src/hci_cmds.c +++ b/src/hci_cmds.c @@ -632,6 +632,7 @@ const hci_cmd_t l2cap_decline_connection = { OPCODE(OGF_BTSTACK, L2CAP_DECLINE_CONNECTION), "21" // @param source cid (16), reason(8) }; + const hci_cmd_t sdp_register_service_record = { OPCODE(OGF_BTSTACK, SDP_REGISTER_SERVICE_RECORD), "S" // @param service record handle (DES) @@ -640,6 +641,10 @@ const hci_cmd_t sdp_unregister_service_record = { OPCODE(OGF_BTSTACK, SDP_UNREGISTER_SERVICE_RECORD), "4" // @param service record handle (32) }; +const hci_cmd_t sdp_client_query_rfcomm_services = { +OPCODE(OGF_BTSTACK, SDP_CLIENT_QUERY_RFCOMM_SERVICES), "BS" +// @param service record handle (32) +}; // create rfcomm channel: @param bd_addr(48), channel (8) const hci_cmd_t rfcomm_create_channel = {