Change the operating gateway by BTN5

Hi,

I am exploting the BTN5 at nrf5430 for changing the device which is operating. I have 3 devices - all of them in BIS-mode.

By now, it seems like the default code let me have 2 of them as headsets and 1 of them as gateway. By pressing BTN5 on one of the headset, it get disconnected.

I want the same function in the case of 2 gateways and 1 headset. Today, I can reset the active gateway-device, such that the other gateway automatically connect. How can I change the BTN5 such that this device is the current audiostream?

The total system will then have 2 gateways, 1 headset, and BTN5 which can connect to the headset and stream audio. 

In regards, thank you!

Asbjørn

Related