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

How to set sd_ble_gap_scan_start() scan parameter for 1M-PHY and LE-Coded-PHY on SoftDeviceV6.1.0

nrf52840 SoftDevice V6.1.0 release-notes written,

The scanner and initiator roles can now be configured to receive ADV_EXT_IND PDUs on both 1M and Coded PHY, using
a single call to sd_ble_gap_scan_start() or sd_ble_gap_connect()


I try sd_ble_gap_scan_start() follow params

    .extended                    = 1,
    .report_incomplete_evts        = 0,
    .active                        = 1,
    .filter_policy                = 0,
    .scan_phys                    = BLE_GAP_PHY_1MBPS | BLE_GAP_PHY_CODED,
    .interval                    = 0x0100, /* 160ms */
    .window                        = 0x0100, /* 160ms */
    .timeout                    = 0,


But  error(0x07 NRF_ERROR_INVALID_PARAM) returns.


How to set ?

Related