From 2034b1bb10720a2f0e6cc97427346f2320c115bc Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 23 Nov 2018 09:40:48 +0100 Subject: o Starting to handle notifications and indications Cleaning up: o Using more of the shared_ptr typedefs. o Adding code styles used by CLion. --- apps/SoilMoisture.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'apps/SoilMoisture.h') diff --git a/apps/SoilMoisture.h b/apps/SoilMoisture.h index 4e6ae17..a46afeb 100644 --- a/apps/SoilMoisture.h +++ b/apps/SoilMoisture.h @@ -29,7 +29,7 @@ extern const Uuid soil_moisture_characteristic; class SoilMoisture { public: - static SoilMoisture create(shared_ptr gatt); + static SoilMoisture create(BluetoothGattPtr gatt); uint8_t getSensorCount(); @@ -44,16 +44,16 @@ public: void setLight(uint8_t light, uint8_t value); private: - SoilMoisture(const shared_ptr &gatt, - const shared_ptr &s, - const shared_ptr &soilMoistureCharacteristic, + SoilMoisture(const BluetoothGattPtr &gatt, + const BluetoothGattServicePtr &s, + const BluetoothGattCharacteristicPtr &soilMoistureCharacteristic, const o temperatureCharacteristic, const o lightCharacteristic); void writeAndRead(const BluetoothGattCharacteristicPtr &c, ByteBuffer &requestBytes); - shared_ptr gatt; - shared_ptr s; + BluetoothGattPtr gatt; + BluetoothGattServicePtr s; const BluetoothGattCharacteristicPtr soilMoistureCharacteristic; const o temperatureCharacteristic; const o lightCharacteristic; -- cgit v1.2.3