diff --git a/src/vendor/command/gap.rs b/src/vendor/command/gap.rs index f44f171..362debd 100644 --- a/src/vendor/command/gap.rs +++ b/src/vendor/command/gap.rs @@ -802,8 +802,6 @@ pub trait GapCommands { /// [set_undirected_connectable](GapCommands::set_undirected_connectable) and /// [set_broadcast_mode](GapCommands::set_broadcast_mode) that only support /// legacy advertising. - // TODO: add adv_set_scan_response_data - // TODO: add adv_set_advertising_data async fn adv_set_config(&mut self, params: &AdvSetConfig); /// This command is used to request the Controller to enable or disbale one @@ -813,6 +811,10 @@ pub trait GapCommands { /// This command is used to set the data used in extended advertising PDUs /// that have a data field async fn adv_set_advertising_data(&mut self, params: &AdvSetAdvertisingData); + + /// This command is used to provide scan response data used during extended + /// advertising + async fn adv_set_scan_response_data(&mut self, params: &AdvSetAdvertisingData); } impl GapCommands for T { @@ -1244,6 +1246,12 @@ impl GapCommands for T { AdvSetAdvertisingData<'a>, crate::vendor::opcode::GAP_ADV_SET_ADV_DATA ); + + impl_variable_length_params!( + adv_set_scan_response_data<'a>, + AdvSetAdvertisingData<'a>, + crate::vendor::opcode::GAP_ADV_SET_SCAN_RESPONSE_DATA + ); } /// Potential errors from parameter validation.