Dear friends,
Thanks all for your support.
I have used a button as a input to detect button press, while at the same time I am using the button as a system wakeup.
Essentially I need to wake up the system when the button is pressed and keep advertising until the button is released. After 2 seconds of the button being release, the system will go into system off mode.
Not sure if there is any potential problem with the way i have set it up.... It seems to work.. but not sure if what i am doing is ok and reliable.
thanks