This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

immediately disconnect and stop advertising

Hello!

I want the device to immediately stop any data transfer when it receives an external event, stop sending advertising and go to sleep.

How to do it right? After exiting the sleep mode, the functionality of advertising should be fully restored.

I could not find how to break the current connection on the device side. Similarly, I have not found how immediately to stop sending advertising.

Related