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:
- 528:8d21604fe31d
- Parent:
- 527:493185cebc03
- Child:
- 567:e4b38e43de7c
--- a/services/DFUService.h Fri Jun 19 15:52:07 2015 +0100
+++ b/services/DFUService.h Fri Jun 19 15:52:07 2015 +0100
@@ -17,7 +17,7 @@
#ifndef __BLE_DFU_SERVICE_H__
#define __BLE_DFU_SERVICE_H__
-#include "BLEDevice.h"
+#include "BLE.h"
#include "UUID.h"
extern "C" void bootloader_start(void);
@@ -48,11 +48,11 @@
* @brief Adds Device Firmware Update service to an existing ble object.
*
* @param[ref] _ble
- * BLEDevice object for the underlying controller.
+ * BLE object for the underlying controller.
* @param[in] _handoverCallback
* Application specific handover callback.
*/
- DFUService(BLEDevice &_ble, ResetPrepare_t _handoverCallback = NULL) :
+ DFUService(BLE &_ble, ResetPrepare_t _handoverCallback = NULL) :
ble(_ble),
controlPoint(DFUServiceControlCharacteristicUUID, controlBytes, GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_NOTIFY),
packet(DFUServicePacketCharacteristicUUID, packetBytes, SIZEOF_PACKET_BYTES, SIZEOF_PACKET_BYTES,
@@ -110,7 +110,7 @@
static const unsigned SIZEOF_PACKET_BYTES = 20;
protected:
- BLEDevice &ble;
+ BLE &ble;
/**< Writing to the control characteristic triggers the handover to dfu-
* bootloader. At present, writing anything will do the trick--this needs
