Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API mbed-dev-bin nRF51822
Fork of microbit-dal by
MicroBitTemperatureService Class Reference
Class definition for the custom MicroBit Temperature Service. More...
#include <MicroBitTemperatureService.h>
Public Member Functions | |
| MicroBitTemperatureService (BLEDevice &_ble, MicroBitThermometer &_thermometer) | |
| Constructor. | |
| void | onDataWritten (const GattWriteCallbackParams *params) |
| Callback. | |
| void | temperatureUpdate (MicroBitEvent e) |
| Temperature update callback. | |
Detailed Description
Class definition for the custom MicroBit Temperature Service.
Provides a BLE service to remotely read the silicon temperature of the nRF51822.
Definition at line 44 of file MicroBitTemperatureService.h.
Constructor & Destructor Documentation
| MicroBitTemperatureService | ( | BLEDevice & | _ble, |
| MicroBitThermometer & | _thermometer | ||
| ) |
Constructor.
Class definition for the custom MicroBit Temperature Service.
Create a representation of the TemperatureService
- Parameters:
-
_ble The instance of a BLE device that we're running on. _thermometer An instance of MicroBitThermometer to use as our temperature source.
Provides a BLE service to remotely read the silicon temperature of the nRF51822. Constructor. Create a representation of the TemperatureService
- Parameters:
-
_ble The instance of a BLE device that we're running on. _thermometer An instance of MicroBitThermometer to use as our temperature source.
Definition at line 41 of file MicroBitTemperatureService.cpp.
Member Function Documentation
| void onDataWritten | ( | const GattWriteCallbackParams * | params ) |
Callback.
Invoked when any of our attributes are written via BLE.
Definition at line 90 of file MicroBitTemperatureService.cpp.
| void temperatureUpdate | ( | MicroBitEvent | e ) |
Temperature update callback.
Definition at line 78 of file MicroBitTemperatureService.cpp.
Generated on Thu Jul 14 2022 17:00:09 by
1.7.2
