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

Embed: (wiki syntax)

« Back to documentation index

MicroBitDFUService Class Reference

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:
_bleThe 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:
_bleThe 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.