Solution for Bluetooth SIG hands-on training course
Dependencies: BLE_API mbed-dev-bin nRF51822-bluetooth-mdw
Fork of microbit-dal-bluetooth-mdw_starter by
MicroBitLEDService Class Reference
Class definition for the custom MicroBit LED Service. More...
#include <MicroBitLEDService.h>
Public Member Functions | |
MicroBitLEDService (BLEDevice &_ble, MicroBitDisplay &_display) | |
Constructor. | |
void | onDataWritten (const GattWriteCallbackParams *params) |
Callback. | |
void | onDataRead (GattReadAuthCallbackParams *params) |
Callback. |
Detailed Description
Class definition for the custom MicroBit LED Service.
Provides a BLE service to remotely read and write the state of the LED display.
Definition at line 48 of file MicroBitLEDService.h.
Constructor & Destructor Documentation
MicroBitLEDService | ( | BLEDevice & | _ble, |
MicroBitDisplay & | _display | ||
) |
Constructor.
Class definition for the custom MicroBit LED Service.
Create a representation of the LEDService
- Parameters:
-
_ble The instance of a BLE device that we're running on. _display An instance of MicroBitDisplay to interface with.
Provides a BLE service to remotely read and write the state of the LED display. Constructor. Create a representation of the LEDService
- Parameters:
-
_ble The instance of a BLE device that we're running on. _display An instance of MicroBitDisplay to interface with.
Definition at line 41 of file MicroBitLEDService.cpp.
Member Function Documentation
void onDataRead | ( | GattReadAuthCallbackParams * | params ) |
Callback.
Invoked when any of our attributes are read via BLE.
Definition at line 116 of file MicroBitLEDService.cpp.
void onDataWritten | ( | const GattWriteCallbackParams * | params ) |
Callback.
Invoked when any of our attributes are written via BLE.
Definition at line 84 of file MicroBitLEDService.cpp.
Generated on Tue Jul 12 2022 20:39:14 by 1.7.2