mbed.org local branch of microbit-dal. The real version lives in git at https://github.com/lancaster-university/microbit-dal
Dependencies: BLE_API nRF51822 mbed-dev-bin
Dependents: microbit Microbit IoTChallenge1 microbit ... more
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 15:22:57 by 1.7.2