diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-03-08 19:40:11 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-03-08 19:40:11 +0100 |
commit | 46cd1838255712cc599a30a81098121aa26d80f5 (patch) | |
tree | da3eeaacf816637f519a23065a6c6c737b34d98e /apps/SoilMoisture.cpp | |
parent | eecddf878f98bb921622a5a5bb2600aedb5a53fa (diff) | |
download | ble-toys-46cd1838255712cc599a30a81098121aa26d80f5.tar.gz ble-toys-46cd1838255712cc599a30a81098121aa26d80f5.tar.bz2 ble-toys-46cd1838255712cc599a30a81098121aa26d80f5.tar.xz ble-toys-46cd1838255712cc599a30a81098121aa26d80f5.zip |
o Formatting.
Diffstat (limited to 'apps/SoilMoisture.cpp')
-rw-r--r-- | apps/SoilMoisture.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/SoilMoisture.cpp b/apps/SoilMoisture.cpp index 0fed8ab..f998d74 100644 --- a/apps/SoilMoisture.cpp +++ b/apps/SoilMoisture.cpp @@ -3,7 +3,6 @@ namespace trygvis { namespace soil_moisture { - #define BLUETOOTH_UUID_INITIALIZER \ { \ 0x00, 0x00, 0x00, 0x00, \ @@ -63,7 +62,7 @@ ByteBuffer createSetUpdateInterval(uint8_t sensor, uint8_t interval_in_seconds) write8(interval_in_seconds); } -SoilMoisture SoilMoisture::create(BluetoothGatt & gatt) { +SoilMoisture SoilMoisture::create(BluetoothGatt &gatt) { gatt.discoverServices(); auto service = gatt.findService(soil_moisture_service); @@ -81,7 +80,7 @@ SoilMoisture SoilMoisture::create(BluetoothGatt & gatt) { return SoilMoisture(gatt, *service, *c); } -SoilMoisture::SoilMoisture(BluetoothGatt & gatt, BluetoothGattService &s, BluetoothGattCharacteristic &c) : +SoilMoisture::SoilMoisture(BluetoothGatt &gatt, BluetoothGattService &s, BluetoothGattCharacteristic &c) : gatt(gatt), s(s), c(c) { } |