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.
Dependencies: BLE_API mbed-dev nRF51822
Diff: HIDController_BLE.cpp
- Revision:
- 15:70bf079d3ee1
- Parent:
- 13:b0ffdf2012b9
- Child:
- 16:345eebc4f259
--- a/HIDController_BLE.cpp Sun Aug 21 06:05:34 2016 +0000 +++ b/HIDController_BLE.cpp Mon Aug 22 02:29:37 2016 +0000 @@ -3,6 +3,7 @@ #include "KeyboardService.h" #include "BatteryService.h" #include "DeviceInformationService.h" +#include "DFUService.h" #include "HIDController_BLE.h" static const char MODEL_NAME[] = "keyboard"; @@ -27,6 +28,7 @@ static KeyboardService* keyboardService; static BatteryService* batteryService; static DeviceInformationService* deviceInformationService; +static DFUService* dfuService; static BLEProtocol::Address_t peerAddress; @@ -148,6 +150,7 @@ deviceInformationService = new DeviceInformationService(ble, "lowreal.net", MODEL_NAME, SERIAL_NUMBER, HARDWARE_REVISION, FIRMWARE_REVISION, SOFTWARE_REVISION); batteryService = new BatteryService(ble, 100); updateBatteryLevel(); + dfuService = new DFUService(ble, NULL); printf("general setup\r\n"); error = ble.gap().accumulateAdvertisingPayload(