nrf52840: Stop Broadcasting after connected to a phone

Hi

I have configured nrf52840 on my raspberry pi. I want this dongle to stop pairing to other device once connected and also most importantly stop broadcasting once it is connected. How to do this?

Thanks in advance! 

Related