BLE central app doesn't get SCAN_RSP callback events during an active scan
Posted: Mon Sep 02, 2024 2:05 pm
I'm writing a BLE central/client app that performs an active scan to discover devices.
The peripheral device I'm interested in sends some of its advertisement data in the ADV_IND message and some in the SCAN_RSP message.
My app gets the BLE_GAP_EVENT_DISC callback events for the ADV_IND messages but NOT for the SCAN_RSP.
I tried a few different variations in the struct ble_gap_disc_params, but none has worked. I just don't get callbacks for the SCAN_RSP messages.
And I know for sure the peripheral device is sending the SCAN_RSP messages, because I can see them with a BLE sniffer.
I'm using ESP-IDF 5.1.4.
Any ideas?
The peripheral device I'm interested in sends some of its advertisement data in the ADV_IND message and some in the SCAN_RSP message.
My app gets the BLE_GAP_EVENT_DISC callback events for the ADV_IND messages but NOT for the SCAN_RSP.
I tried a few different variations in the struct ble_gap_disc_params, but none has worked. I just don't get callbacks for the SCAN_RSP messages.
And I know for sure the peripheral device is sending the SCAN_RSP messages, because I can see them with a BLE sniffer.
I'm using ESP-IDF 5.1.4.
Any ideas?