2024-08-15 06:13 AM
uint8_t scan_reports_only[8] = { 0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00 };
ret = hci_le_set_event_mask(scan_reports_only);
if (ret != BLE_STATUS_SUCCESS)
{
APP_DBG_MSG(" Fail : hci_le_set_event_mask command, result: 0x%x \n", ret);
}
else
{
APP_DBG_MSG(" Success: hci_le_set_event_mask command\n");
}
ret = aci_hal_set_event_mask(0x00000001 /*ACI_HAL_SCAN_REQ_REPORT_EVENT*/);
if (ret != BLE_STATUS_SUCCESS)
{
APP_DBG_MSG(" Fail : aci_hal_set_event_mask command - ACI_HAL_SCAN_REQ_REPORT_EVENT, result: 0x%x \n", ret);
}
else
{
APP_DBG_MSG(" Success: aci_hal_set_event_mask command - ACI_HAL_SCAN_REQ_REPORT_EVENT\n");
}