Hi everybody,
I am using nRF52832/40 with SDK 15.3 and softdevices S132/S140 v6.1.1.
One of my devices is performing active scanning, therefore sending scan requests, and the other one is replying with scan responses.
I can see clearly that this is happeing correctly using your BLE sniffer for Wireshark (btw, great tool!).
I am able to set the scan request and parse it on the peripheral side.
I am able to set the scan response, but I'm not able to parse it on the central side, and this is what I'd like to do.
This is a snippet from my code:
static void on_adv_report(ble_gap_evt_adv_report_t const * p_adv_report) { if (p_adv_report->type.scan_response) { // Parse scan response packet here led_blink(2,1,200); //This is just for debugging } else { // Parse advertising packet here } }
It seems like I'm never entering the first if, where scan response packets should be handled, while I'm always entering the second one (for regular advertising packets).
What am I doing wrong?
Thank you very much!