How to change scan target name based on SDK v15.2.0 or compare the target name and make the connection by FW

Dear Sir,

       Good day.

       I was able to determine the peripheral devices which I need to connect based on sdk v12.2.0. I can compare the adv name and device name during BLE_GAP_EVP_REPORT state. I can make the connection to the device or ignore to search the next by the result of target name comparation. I used the driver API "sd_ble_gap_connect" to connect to device.

      Now, I am developing an application to support 5 more devices with a different name based on sdk v15.2.0. I am aware that there was no such as the process on sdk v12.2.0. The new sdk create a subroutine to handle scan process by  "NRF_BLE_SCAN_DEF(m_scan); ".

      Is there any way or how to implement my functions into sdk v15.2.0 to do the device target name comparation and to connect the device by the result of comparation?

Related