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-bin nRF51822
Dependents: microbit-eddystone
Fork of microbit-dal by
MicroBitDFUService Class Reference
Class definition for a MicroBit Device Firmware Update loader. More...
#include <MicroBitDFUService.h>
| Public Member Functions | |
| MicroBitDFUService (BLEDevice &_ble) | |
| Constructor. | |
| virtual void | onDataWritten (const GattWriteCallbackParams *params) | 
| Callback. | |
Detailed Description
Class definition for a MicroBit Device Firmware Update loader.
This service allows hexes to be flashed remotely from another Bluetooth device.
Definition at line 55 of file MicroBitDFUService.h.
Constructor & Destructor Documentation
| MicroBitDFUService | ( | BLEDevice & | _ble ) | 
Constructor.
Class definition for a MicroBit Device Firmware Update loader.
Initialise the Device Firmware Update service.
- Parameters:
- 
  _ble The instance of a BLE device that we're running on. 
This is actually just a frontend to a memory resident nordic DFU loader.
We rely on the BLE standard pairing processes to provide encryption and authentication. We assume any device that is paied with the micro:bit is authorized to reprogram the device. Constructor. Initialise the Device Firmware Update service.
- Parameters:
- 
  _ble The instance of a BLE device that we're running on. 
Definition at line 69 of file MicroBitDFUService.cpp.
Member Function Documentation
| void onDataWritten | ( | const GattWriteCallbackParams * | params ) |  [virtual] | 
Callback.
Invoked when any of our attributes are written via BLE.
Definition at line 95 of file MicroBitDFUService.cpp.
Generated on Tue Jul 12 2022 21:07:41 by
 1.7.2
 1.7.2 
    