How to set Xiao nRF52840 as non-connectable

I am trying to make a beacon using the Seeed Studio nRF52840 board. I have so far been able to set it up as a beacon, but I want to make it so that no other device can connect to it. What will I have to add to the code to make it non-connectable?

Hi There,
Can you post up the code? I would like to set my device from a connectable peripheral to a advertising beacon.(not connectable) Dynamically. Which board files are You using?
GL :slight_smile: PJ