Hello all, I am implementing an energy efficient system, in which I am advertising in BLE_GAP_ADV_TYPE_ADV_SCAN_IND mode, I am using scan_req_report as an acknowledgement from a phone(my central device) after which i would like to stop advertising.
I use nRF51822xAA, SDK 9.0.0, sd110 8.0.0 and keil uVision5
I observe the following:
1.After my device receives scan request report (as seen in the debugging mode), it reaches sd_ble_evt_get funtion and subsequently HARDFAULT error.
2.When not in debugging mode, my device is not responding with a scan response for scan requests it receives(as observed by the sniffer).
Please interpret the observations I have made and suggest the best way to use SCAN_REQ as an ACK.
Thank you