Martin Woolley / microbit-dal-bluetooth-mdw

Dependencies:   BLE_API nRF51822-bluetooth-mdw

Fork of microbit-dal by Lancaster University

Embed: (wiki syntax)

« Back to documentation index

MicroBitAnimationService Class Reference

MicroBitAnimationService Class Reference

Class definition for a MicroBit BLE Animation Service. More...

#include <MicroBitAnimationService.h>

Public Member Functions

 MicroBitAnimationService (BLEDevice &_ble)
 Constructor.
void onDataWritten (const GattWriteCallbackParams *params)
 Callback.

Detailed Description

Class definition for a MicroBit BLE Animation Service.

Definition at line 45 of file MicroBitAnimationService.h.


Constructor & Destructor Documentation

MicroBitAnimationService ( BLEDevice &  _ble )

Constructor.

Class definition for a MicroBit BLE Animation Service.

Create a representation of the AnimationService

Parameters:
_bleThe instance of a BLE device that we're running on.

Provides a BLE gateway onto an Animation Model. Constructor. Create a representation of the AnimationService

Parameters:
_bleThe instance of a BLE device that we're running on.

Definition at line 41 of file MicroBitAnimationService.cpp.


Member Function Documentation

void onDataWritten ( const GattWriteCallbackParams *  params )

Callback.

Invoked when a characteristic is written to

Invoked when any of our attributes are written via BLE.

Definition at line 105 of file MicroBitAnimationService.cpp.