This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

connect to BLE MAC ADDR without whitelisting

Quick Summary:
- Devices used: nRF52832 (Central), nRF52840 (Peripheral)

Example based on : BLE Scanner

Hi Team,

In my current application, based on a BLE Scanner Example shared in Nordic DevZone, I have filtered out the devices stored the device MAC Address in a custom structure.

Now, I want to connect to a specific BLE MAC Address device.

After some searching, and BLE Central Tutorial described here, i used the sd_ble_gap_connect function with all specified parameter. After successful connection with the targeted device, BLE_GAP_EVT_CONNECTTED is received. and just after that application crashes with error NULL POINTER in function ble_lbs_c_handles_assign.

what causes the error?

after debugging, the program stops and gives error at VERIFY_PARAM_NOT_NULL(p_gatt_queue) in nrf_ble_gq_conn_handle_register().

How can do I solve this problem?

Related