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 MPU6050 mbed nRF51822
AccelerationService Class Reference
BLE Acceleration Service. More...
#include <AccelerationService.h>
Public Member Functions | |
| AccelerationService (BLE &_ble) | |
| void | addAcceleration (int16_t *newAccel) |
| Update the temperature with a new value. | |
Protected Attributes | |
| BLE & | ble |
| A reference to the underlying BLE instance that this object is attached to. | |
| int16_t | temp |
| The current temperature represented as 0.1 degrees Celsius. | |
| ReadOnlyGattCharacteristic < int16_t > | accelerationXCharacteristic |
| A ReadOnlyGattCharacteristic that allows access to the peer device to the temperature value through BLE. | |
Detailed Description
BLE Acceleration Service.
This service displays the acceleration
Definition at line 15 of file AccelerationService.h.
Constructor & Destructor Documentation
| AccelerationService | ( | BLE & | _ble ) |
- Parameters:
-
[in] _ble BLE object for the underlying controller.
Definition at line 21 of file AccelerationService.h.
Member Function Documentation
| void addAcceleration | ( | int16_t * | newAccel ) |
Update the temperature with a new value.
Valid values lie between -2732 and above.
- Parameters:
-
newTemp Update to temperature.
Definition at line 40 of file AccelerationService.h.
Field Documentation
ReadOnlyGattCharacteristic<int16_t> accelerationXCharacteristic [protected] |
A ReadOnlyGattCharacteristic that allows access to the peer device to the temperature value through BLE.
Definition at line 68 of file AccelerationService.h.
BLE& ble [protected] |
A reference to the underlying BLE instance that this object is attached to.
The services and characteristics will be registered in this BLE instance.
Definition at line 55 of file AccelerationService.h.
int16_t temp [protected] |
The current temperature represented as 0.1 degrees Celsius.
Definition at line 61 of file AccelerationService.h.
Generated on Sat Jul 23 2022 08:14:02 by
1.7.2