aboutsummaryrefslogtreecommitdiff
path: root/apps/SoilMoisture.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/SoilMoisture.h')
-rw-r--r--apps/SoilMoisture.h12
1 files changed, 6 insertions, 6 deletions
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<BluetoothGatt> 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<BluetoothGatt> &gatt,
- const shared_ptr<BluetoothGattService> &s,
- const shared_ptr<BluetoothGattCharacteristic> &soilMoistureCharacteristic,
+ SoilMoisture(const BluetoothGattPtr &gatt,
+ const BluetoothGattServicePtr &s,
+ const BluetoothGattCharacteristicPtr &soilMoistureCharacteristic,
const o<BluetoothGattCharacteristicPtr> temperatureCharacteristic,
const o<BluetoothGattCharacteristicPtr> lightCharacteristic);
void writeAndRead(const BluetoothGattCharacteristicPtr &c, ByteBuffer &requestBytes);
- shared_ptr<BluetoothGatt> gatt;
- shared_ptr<BluetoothGattService> s;
+ BluetoothGattPtr gatt;
+ BluetoothGattServicePtr s;
const BluetoothGattCharacteristicPtr soilMoistureCharacteristic;
const o<BluetoothGattCharacteristicPtr> temperatureCharacteristic;
const o<BluetoothGattCharacteristicPtr> lightCharacteristic;