cancel
Showing results for 
Search instead for 
Did you mean: 

aci_gap_adv_set_scan_resp_data returns 0x0C

cvs_dev
Associate II

Hi all
when i try to call the function to add scan response data to my advertising data I get the error 0x0C. I get the error code means that operation is not allowed, but nowhere it tells how to call a function in order to be allowed. 
I am susing STM32WBA55 Nucleo with latest CubeMX

cvs_dev_0-1747230228710.png

Here is the trace od me calling the function from uart commands. 

tBleStatus APP_BLE_Advertising_Add_Scan_Response_Data(uint8_t *p_data, uint8_t data_len)
{
  tBleStatus status;
  status = aci_gap_adv_set_scan_resp_data(0, 0x03, 0, data_len, p_data);
  if (status != BLE_STATUS_SUCCESS)
  {
    LOG_INFO_APP("==>> Advertising add scan response data - fail, result: 0x%02X\n\r", status);
  }
  else
  {
    LOG_INFO_APP("==>> Advertising add scan response data - Success\n\r");
  }
  return status;
}

tBleStatus APP_BLE_Advertising_Remove_Scan_Response_Data(void)
{
  tBleStatus status;
  status = aci_gap_adv_set_scan_resp_data(0,0x03, 0,0, NULL);
  if (status != BLE_STATUS_SUCCESS)
  {
    LOG_INFO_APP("==>> Advertising remove scan response data - fail, result: 0x%02X\n\r", status);
  }
  else
  {
    LOG_INFO_APP("==>> Advertising remove scan response data - Success\n\r");
  }
  return status;
}

 

0 REPLIES 0