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

Auto-connect central with the same peripheral after first connection even if there's more peripheral near

Hello there,

I'm developing a device who will use two NRF52832(ANNA-B112 Module). They will communicate as central and peripheral.
But i'm facing a problem, i need to after the first connection between the peripheral and the central, the central stores a unique identification to connect only with this first device that has been connected on the first connection. 

For example:

I have 1 peripheral(A) advertising, then my central connects with peripheral (A) after that i disconnect both and turn on a second peripheral(B)(With the same name as peripheral A) and peripheral(A). So the central should connect again only with the peripheral(A).

Is this possible using bonding and whitelist? or there's another method to do that?

I'm using SDK 15.3

Ty in advance.

Parents Reply Children
  • hi,

    I am interested in this question

    I checked  sdk15.3\examples\ble_central\ble_app_hrs_c, and in my opnion , the hrs_c example cannot demonstrate Central can reconnect the first one connected even there are another same name peripheral.

    No Example has been found to demonstrate this function

    I think this work may require application developer to implement through a Buf stored a first connected peripheral address ,correct?

    Any help would be much appreciated!

Related