i have ble central application that correctly handles scan response unde esp idf 5.1.3 using NimBLE.
After updating to 5.1.4 (or 5.1.5/5.1.6) it stops recieving ble scan response.
I just update without code or configuration changes.
That's the piece of code of the _scan_evt_handler function that handles BLE_GAP_EVENT_DISC:
Code: Select all
static int _scan_evt_handler(struct ble_gap_event *event, void *arg)
{
struct ble_hs_adv_fields fields;
int rc;
const uint8_t *adv_data;
uint8_t adv_len;
const ble_addr_t *addr;
int8_t rssi;
switch (event->type)
{
case BLE_GAP_EVENT_DISC:
adv_data = event->disc.data;
adv_len = event->disc.length_data;
addr = &event->disc.addr;
rssi = event->disc.rssi;
MODLOG_DFLT(ERROR, "BLE_GAP_EVENT_DISC: event type: %u \n", event->disc.event_type); //<- NO RECEIVING BLE_HCI_ADV_RPT_EVTYPE_SCAN_RSP in esp-idf 5.1.4/5.1.5/5.1.6
/*other code*/
Do you have similar issue?
Thanks,
Alessandro