I have a nRF51822 and I want to disconnect it from a peripheral for a time. I'm using mbed. I'm trying with ble.disconnect() but it doesn't work.
Hi,
Have you tried ble.gap().disconnect(reason) ?
ble.gap().disconnect(reason)
Take a look at the mbed BLE.h file here.
Take a look at this post.