diff options
Diffstat (limited to 'apps/SoilMoisture.h')
-rw-r--r-- | apps/SoilMoisture.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/SoilMoisture.h b/apps/SoilMoisture.h index 2016c9a..938da07 100644 --- a/apps/SoilMoisture.h +++ b/apps/SoilMoisture.h @@ -24,18 +24,18 @@ extern const boost::uuids::uuid soil_moisture_characteristic; class SoilMoisture { public: - static SoilMoisture create(BluetoothGatt &gatt); + static SoilMoisture create(shared_ptr<BluetoothGatt> gatt); uint8_t getSensorCount(); uint16_t getValue(uint8_t sensor); private: - SoilMoisture(BluetoothGatt &gatt, BluetoothGattService &s, BluetoothGattCharacteristic &c); + SoilMoisture(shared_ptr<BluetoothGatt> gatt, BluetoothGattService &s, BluetoothGattCharacteristic &c); ByteBuffer writeAndRead(ByteBuffer &requestBytes); - BluetoothGatt &gatt; + shared_ptr<BluetoothGatt> gatt; BluetoothGattService &s; BluetoothGattCharacteristic &c; }; |