I am trying to disconnect the nrf51822 ble(peripheral) from the App(central) for some seconds say 5-7 seconds after event occurs like this:
advertise -> connect -> receive (say 1 byte) -> disconnect and then back to advertise after 5-7 seconds.
I found the function called ble.disconnect() but not able to use it properly on user level.
Am I using the correct function or I need to use the different function?
please guide me.