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

Whitelist set but not automatically restarted

Hi,

When I bond with a central to my device, the peer gets added to the whitelist. But I want my device (peripheral), to automatically start advertising in whitelist after the peer get's bonded, but it only does this when I restart the device.

I also make use of multipeers which can be connected at same time, perhaps that's the problem?

How can I force a restart of the advertising in whitelist whithout a reset of the device?

Parents
  • Hi, just a bump because it's been almost 2 weeks and still didn't get a reply.

    What I also noticed is, that apart from resetting, it also starts to advertise in whitelisting after bonding if I first disconnect and then reconnect,

    But I want it to go to whitelist advertising immediately after a bond, without reset or reconnect. But I suspect the fact that I continue advertising when connected to a peer is part of the problem, because I want to be connected to multiple peers. So where can I some sort of reset the advertising in the peer manager? I am using the peer_manager_handler.c by the way for the event handling of peer manager.

Reply
  • Hi, just a bump because it's been almost 2 weeks and still didn't get a reply.

    What I also noticed is, that apart from resetting, it also starts to advertise in whitelisting after bonding if I first disconnect and then reconnect,

    But I want it to go to whitelist advertising immediately after a bond, without reset or reconnect. But I suspect the fact that I continue advertising when connected to a peer is part of the problem, because I want to be connected to multiple peers. So where can I some sort of reset the advertising in the peer manager? I am using the peer_manager_handler.c by the way for the event handling of peer manager.

Children
No Data
Related