diff options
Diffstat (limited to 'include/ble')
-rw-r--r-- | include/ble/Bluetooth.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/ble/Bluetooth.h b/include/ble/Bluetooth.h index 1a1394e..80729af 100644 --- a/include/ble/Bluetooth.h +++ b/include/ble/Bluetooth.h @@ -124,9 +124,7 @@ public: virtual BluetoothDevice &getDevice() const = 0; - virtual void connect() = 0; - - virtual void disconnect() = 0; + virtual bool isConnected() const = 0; virtual void writeValue(const BluetoothGattCharacteristic &c, const ByteBuffer &bytes) = 0; @@ -149,7 +147,7 @@ public: virtual BluetoothAdapter &getAdapter() = 0; - virtual BluetoothGatt &connectGatt() = 0; + virtual shared_ptr<BluetoothGatt> connectGatt() = 0; }; class BluetoothAdapter { |