How can a peripheral initiate a disconnection after it has connected to a central?
Update: I use mbed.
How can a peripheral initiate a disconnection after it has connected to a central?
Update: I use mbed.
Is this implemented in mbed?
To complete the correct answer given by @rols:
Mbed use internally SDK/SoftDevice functions provided by Nordic. To disconnect, you can use the following method of the nRF5xGap
class:
ble_error_t nRF5xGap::disconnect(Handle_t connectionHandle, DisconnectionReason_t reason)
Which uses the sd_ble_gap_disconnect()
function internally, see the source here on Github.