diff --git a/src/classic/hfp_hf.c b/src/classic/hfp_hf.c index 38f557721..197800fb1 100644 --- a/src/classic/hfp_hf.c +++ b/src/classic/hfp_hf.c @@ -2264,6 +2264,10 @@ void hfp_hf_create_sdp_record(uint8_t * service, uint32_t service_record_handle, de_add_number(service, DE_UINT, DE_SIZE_16, sdp_features); } +void hfp_hf_register_custom_at_command(hfp_custom_at_command_t * custom_at_command){ + hfp_register_custom_hf_command(custom_at_command); +} + void hfp_hf_register_packet_handler(btstack_packet_handler_t callback){ btstack_assert(callback != NULL); diff --git a/src/classic/hfp_hf.h b/src/classic/hfp_hf.h index f658955cc..52ede0aa7 100644 --- a/src/classic/hfp_hf.h +++ b/src/classic/hfp_hf.h @@ -559,6 +559,12 @@ int hfp_hf_in_band_ringtone_active(hci_con_handle_t acl_handle); */ uint8_t hfp_hf_send_at_command(hci_con_handle_t acl_handle, const char * at_command); +/** + * @brief Register custom AT command. + * @param hfp_custom_at_command (with '+' prefix) + */ +void hfp_hf_register_custom_at_command(hfp_custom_at_command_t * custom_at_command); + /** * @brief De-Init HFP HF */