Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: microbit-dal microbit-dal microbit-ble-open microbit-dal ... more
Fork of BLE_API by
Diff: services/DFUService.h
- Revision:
- 243:98f930d14515
- Parent:
- 242:0e9201b67e2f
- Child:
- 245:712e0719d7e9
--- a/services/DFUService.h Tue Dec 09 08:18:11 2014 +0000
+++ b/services/DFUService.h Tue Dec 09 13:15:19 2014 +0000
@@ -81,11 +81,10 @@
}
/**
- * @brief
- * @return
+ * @brief get the handle for the value attribute of the control characteristic.
*/
- uint16_t getControlHandle(void) {
- return controlPoint.getValueAttribute().getHandle();
+ uint16_t getControlHandle(void) const {
+ return controlPoint.getValueHandle();
}
/**
@@ -93,8 +92,8 @@
* handover control to the bootloader; but first the application is given a
* chance to clean up.
*
- * @param[in]
- *
+ * @param[in] params
+ * Information about the characterisitc being updated.
*/
virtual void onDataWritten(const GattCharacteristicWriteCBParams *params) {
if (params->charHandle == controlPoint.getValueAttribute().getHandle()) {
