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

Whitelist in peripheral side

Hi

I need to connect to perticular central and i know the central MAC address. So i am using whitelisting in peripheral.

I made below changes in my code in ble_app_uart but central getting connected disconnected so fast. Did i miss something to add in code or whats the problem?

1. When i used peer_addr.addr_type = BLE_GAP_ADDR_TYPE_PUBLIC; then peripheral is seen on nrf but not able to connect and when i set BLE_GAP_ADDR_TYPE_RANDOM_STATIC no peripheral is shown  on nrf app.

Please suggest how to connect one peripheral to particular central?

  • Hi,

    Is the central always going to have a static address? Note that whitelisting of Android and iOS devices will require support for bonding as you will need a way to get their identity resolving key (IRK) for address resolving.

    BLE_GAP_ADDR_TYPE_RANDOM_STATIC no peripheral is shown  on nrf app

     The configured address type must match the actual address input. I expect that's not the case seen it doesn't start advertising. Does sd_ble_gap_whitelist_set() return an error?

  • No error is coming with sd_ble_gap_whitelist_set() api.

    Is there any chnages required in central side?

  • There must be an error returned somewhere if it doesn't start advertising.

  • Hi

    I also tried to make changes just like hid_keyboard example still its not working .

    In this code the board is not advertise.Please tell me where i am going wrong?

  • Hi,

    Please try to debug the application to find out why it's not advertising. Most likely you have an error being passed to one of the APP_ERROR_CHECK() macros which will cause the SDK Error module to get invoked.