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

Advertise the peripheral to only one requires central.

My end object is to connect the peripheral to one required central. It should not get connect to another central or to the nRF connect app.

I have gone through many example and ways like whitelisting on peripheral, direct advertising on peripheral, but i'm not getting the required outcome.

Can anyone tell me the right way to achieve it ? Or post me the code for peripheral uart example, achieving the required outcome.

Parents Reply Children
  • I'm new to this work. I'm missing somewhere in the code and unable to debug what's going. 

    I tried implementing the whitelisting at peripheral with a central peer address by the way, but the peripheral advertises to all. When i tried to connect to it, it's not connecting, even if connected its disconnecting immediately.

    Can you please guide me with the code, so that I can rectify where the mistake is committed. 

    Thanking you.

Related