Lightly modified version of the BLE stack, that doesn't bring up a DFUService by default... as we have our own.
Fork of BLE_API by
Diff: public/BLEDevice.h
- Revision:
- 335:dea9e14b7ddc
- Parent:
- 334:6bc1223306b9
- Child:
- 336:896e159d3af6
--- a/public/BLEDevice.h Wed Apr 15 09:05:10 2015 +0100 +++ b/public/BLEDevice.h Wed Apr 15 09:05:10 2015 +0100 @@ -219,6 +219,14 @@ */ ble_error_t stopAdvertising(void); + /** + * This call initiates the disconnection procedure, and its completion will + * be communicated to the application with an invocation of the + * onDisconnection callback. + * + * @param reason + * The reason for disconnection to be sent back to the peer. + */ ble_error_t disconnect(Gap::DisconnectionReason_t reason); /* APIs to set GAP callbacks. */