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

If Slave is not online, master scan with whitelist will enter error

Central and peripheral is pairing and bonded. Central scanning with whitelist, if Slave is not online, master scan with whitelist will enter error when more than 30 seconds.

SD is 7.0.1 S132,SDK is 16.0.0

Parents
  • Dear Einar,

    Thanks for your reply.  I refer to hrs_c demo code. Error code as below. The second APP_ERROR_CHECK(ret);

    static void whitelist_load()
    {
        ret_code_t   ret;
        pm_peer_id_t peers[8];
        uint32_t     peer_cnt;
    
        memset(peers, PM_PEER_ID_INVALID, sizeof(peers));
        peer_cnt = (sizeof(peers) / sizeof(pm_peer_id_t));
    
        // Load all peers from flash and whitelist them.
        peer_list_get(peers, &peer_cnt);
    
        ret = pm_whitelist_set(peers, peer_cnt);
        APP_ERROR_CHECK(ret);
    
        // Setup the device identies list.
        // Some SoftDevices do not support this feature.
        ret = pm_device_identities_list_set(peers, peer_cnt);
        if (ret != NRF_ERROR_NOT_SUPPORTED)
        {
            APP_ERROR_CHECK(ret);
        }
    }

  • Hi,

    OK, so pm_device_identities_list_set() returns an error when you start to scan with a whitelist? What is the error code? What do you test with? The HRS example? If you are using any modifications, can you share your code?

Reply Children
Related