Page 1 of 1

ESP32-C3-: ble scan response is not received in esp-idf 5.1.4/5.1.5/5.1.6 using NImBLE

Posted: Fri Jul 04, 2025 1:15 pm
by longo92
Hi,
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*/
If enabled the role observer as suggested in https://github.com/espressif/esp-idf/issues/14949, in esp-idf 5.1.4 it works.
Do you have similar issue?

Thanks,
Alessandro