diff options
author | chegewara <imperiaonline4@gmail.com> | 2018-11-30 10:59:14 +0100 |
---|---|---|
committer | chegewara <imperiaonline4@gmail.com> | 2018-11-30 10:59:14 +0100 |
commit | 934702b6169b92c71cbc850876fd17fb9ee3236d (patch) | |
tree | 048df4f7106cd4a574b609a13e62a36567f5a322 /src/BLE2904.cpp | |
parent | Upload of 0.4.16 (diff) | |
download | thermostat-934702b6169b92c71cbc850876fd17fb9ee3236d.tar.gz thermostat-934702b6169b92c71cbc850876fd17fb9ee3236d.tar.bz2 thermostat-934702b6169b92c71cbc850876fd17fb9ee3236d.zip |
Changes, bugfixes and updgrades. Library is ready to work with arduino-esp32 v1.0.1.
Diffstat (limited to 'src/BLE2904.cpp')
-rw-r--r-- | src/BLE2904.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/BLE2904.cpp b/src/BLE2904.cpp index 4423ed8..02252a1 100644 --- a/src/BLE2904.cpp +++ b/src/BLE2904.cpp @@ -21,7 +21,7 @@ BLE2904::BLE2904() : BLEDescriptor(BLEUUID((uint16_t) 0x2904)) { m_data.m_namespace = 1; // 1 = Bluetooth SIG Assigned Numbers m_data.m_unit = 0; m_data.m_description = 0; - setValue((uint8_t*)&m_data, sizeof(m_data)); + setValue((uint8_t*) &m_data, sizeof(m_data)); } // BLE2902 @@ -30,7 +30,7 @@ BLE2904::BLE2904() : BLEDescriptor(BLEUUID((uint16_t) 0x2904)) { */ void BLE2904::setDescription(uint16_t description) { m_data.m_description = description; - setValue((uint8_t*)&m_data, sizeof(m_data)); + setValue((uint8_t*) &m_data, sizeof(m_data)); } @@ -39,7 +39,7 @@ void BLE2904::setDescription(uint16_t description) { */ void BLE2904::setExponent(int8_t exponent) { m_data.m_exponent = exponent; - setValue((uint8_t*)&m_data, sizeof(m_data)); + setValue((uint8_t*) &m_data, sizeof(m_data)); } // setExponent @@ -48,7 +48,7 @@ void BLE2904::setExponent(int8_t exponent) { */ void BLE2904::setFormat(uint8_t format) { m_data.m_format = format; - setValue((uint8_t*)&m_data, sizeof(m_data)); + setValue((uint8_t*) &m_data, sizeof(m_data)); } // setFormat @@ -57,18 +57,18 @@ void BLE2904::setFormat(uint8_t format) { */ void BLE2904::setNamespace(uint8_t namespace_value) { m_data.m_namespace = namespace_value; - setValue((uint8_t*)&m_data, sizeof(m_data)); + setValue((uint8_t*) &m_data, sizeof(m_data)); } // setNamespace /** * @brief Set the units for this value. It should be one of the encoded values defined here: * https://www.bluetooth.com/specifications/assigned-numbers/units - * @param [in] uint The type of units of this characteristic as defined by assigned numbers. + * @param [in] unit The type of units of this characteristic as defined by assigned numbers. */ void BLE2904::setUnit(uint16_t unit) { m_data.m_unit = unit; - setValue((uint8_t*)&m_data, sizeof(m_data)); + setValue((uint8_t*) &m_data, sizeof(m_data)); } // setUnit #endif |