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 nRF51822 mbed-dev-bin
Dependents: microbit Microbit IoTChallenge1 microbit ... more
MicroBitMagnetometerService Class Reference
Class definition for the MicroBit BLE Magnetometer Service. More...
#include <MicroBitMagnetometerService.h>
Public Member Functions | |
MicroBitMagnetometerService (BLEDevice &_ble, MicroBitCompass &_compass) | |
Constructor. |
Detailed Description
Class definition for the MicroBit BLE Magnetometer Service.
Provides access to live magnetometer data via BLE, and provides basic configuration options.
Definition at line 45 of file MicroBitMagnetometerService.h.
Constructor & Destructor Documentation
MicroBitMagnetometerService | ( | BLEDevice & | _ble, |
MicroBitCompass & | _compass | ||
) |
Constructor.
Class definition for the MicroBit BLE Magnetometer Service.
Create a representation of the MagnetometerService.
- Parameters:
-
_ble The instance of a BLE device that we're running on. _compass An instance of MicroBitCompass to use as our Magnetometer source.
Provides access to live magnetometer data via BLE, and provides basic configuration options. Constructor. Create a representation of the MagnetometerService.
- Parameters:
-
_ble The instance of a BLE device that we're running on. _compass An instance of MicroBitCompass to use as our Magnetometer source.
Definition at line 41 of file MicroBitMagnetometerService.cpp.
Generated on Tue Jul 12 2022 15:22:57 by
