yeah ,this demo i runned it indeed can connect to multi slave board. and also can launch advertising and connect with smart phone.
it can switch the role by press the ROLEBTN, in the demo board it exist the button, but in our project this is no such button,
i wonder if i define a global flag. and flip-flop it in a task. if the flag == 1 do the scan or do the advertise.
or i do the scan after a time intervel then do the advertise. or is there any method to achieve it without the button press event to trigger. thanks a lot!.