fsdfds
Dependencies: BLE_API mbed-dev-bin nRF51822
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 Wed Jul 13 2022 00:58:04 by 1.7.2