BLE_API_Tiny_BLE
Fork of BLE_API by
Diff: services/HealthThermometerService.h
- Revision:
- 408:d383315df10b
- Parent:
- 277:1407d2f1ce3c
--- a/services/HealthThermometerService.h Wed Apr 15 09:05:11 2015 +0100 +++ b/services/HealthThermometerService.h Wed Jun 10 09:43:26 2015 +0000 @@ -26,7 +26,8 @@ * Temperature Measurement: https://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicViewer.aspx?u=org.bluetooth.characteristic.temperature_measurement.xml <br> * Temperature Type: https://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicViewer.aspx?u=org.bluetooth.characteristic.temperature_type.xml */ -class HealthThermometerService { +class HealthThermometerService +{ public: /** * @enum Sensor Location @@ -121,7 +122,7 @@ return bytes; } -private: + private: /** * @brief A very quick conversion between a float temperature and 11073-20601 FLOAT-Type. * @param temperature The temperature as a float. @@ -134,7 +135,7 @@ return (((uint32_t)exponent) << 24) | mantissa; } -private: + private: /* First byte = 8-bit flags, Second field is a float holding the temperature value. */ /* See --> https://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicViewer.aspx?u=org.bluetooth.characteristic.temperature_measurement.xml */ uint8_t bytes[SIZEOF_VALUE_BYTES];