BlueNRG-LP Connectionless Observer
Hi,
I'm trying to program a Connectionless Observer that scans all ADV_NONCONN_IND adv events, but the hci_le_advertising_report_event() callback isn't called. I'm using BLE_STACK_FULL_CONF and I have this configuration:
// Init GAP
aci_gap_init(GAP_OBSERVER_ROLE, 0x00, 0x08, PUBLIC_ADDR, &service_handle, &dev_name_char_handle, &appearance_char_handle);
// SCAN CONFIG
status = aci_gap_set_scan_configuration ( DUPLICATE_FILTER_DISABLED,
ADV_NO_WHITE_LIST_USE,
LE_1M_PHY_BIT,
PASSIVE_SCAN,
0x4000,
0x4000
);
// EVENT MASK
uint8_t eventMask[8] = {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02};
status = hci_le_set_event_mask(eventMask);
// SCAN ENABLE
status = hci_le_set_scan_enable(1,0);
I don't get any state error. What am I doing wrong?
