9#ifndef BLUEZQT_GATTCHARACTERISTICREMOTE_H
10#define BLUEZQT_GATTCHARACTERISTICREMOTE_H
12#include "bluezqt_export.h"
13#include "gattdescriptorremote.h"
21class GattServiceRemote;
34 Q_PROPERTY(QString ubi READ ubi CONSTANT)
35 Q_PROPERTY(QString uuid READ uuid NOTIFY uuidChanged)
36 Q_PROPERTY(QByteArray value READ value NOTIFY valueChanged)
37 Q_PROPERTY(
bool writeAcquired READ isWriteAcquired NOTIFY writeAcquiredChanged)
38 Q_PROPERTY(
bool notifyAcquired READ isNotifyAcquired NOTIFY notifyAcquiredChanged)
39 Q_PROPERTY(
bool notifying READ isNotifying NOTIFY notifyingChanged)
40 Q_PROPERTY(QStringList flags READ flags NOTIFY flagsChanged)
41 Q_PROPERTY(quint16 handle READ handle NOTIFY handleChanged)
42 Q_PROPERTY(quint16 MTU READ MTU NOTIFY MTUChanged)
43 Q_PROPERTY(GattServiceRemotePtr service READ service CONSTANT)
44 Q_PROPERTY(QList<GattDescriptorRemotePtr> descriptors READ descriptors NOTIFY descriptorsChanged)
281 BLUEZQT_NO_EXPORT
explicit GattCharacteristicRemote(
const QString &path,
const QVariantMap &properties, GattServiceRemotePtr service);
283 const std::unique_ptr<class GattCharacteristicRemotePrivate> d;
285 friend class DevicePrivate;
286 friend class GattServiceRemotePrivate;
287 friend class GattCharacteristicRemotePrivate;
288 friend class ManagerPrivate;
Bluetooth adapter.
Definition adapter.h:33
Bluetooth LE GATT characteristic.
Definition gattcharacteristicremote.h:32
void valueChanged(const QByteArray value)
Indicates that characteristic's value have changed.
QString ubi() const
Returns an UBI of the GATT characteristic.
quint16 MTU() const
Returns characteristic MTU.
bool isNotifyAcquired() const
Returns whether notifyAcquired for the characteristic.
PendingCall * confirm()
Confirmation that value of the characteristic was received.
GattServiceRemotePtr service() const
Returns a service that owns that characteristic.
QStringList flags() const
Returns flags the characteristic.
PendingCall * stopNotify()
Stop notifying the value of the GATT characteristic.
~GattCharacteristicRemote() override
Destroys a GattCharacteristic object.
PendingCall * writeValue(const QByteArray &value, const QVariantMap &options)
Write the value of the GATT characteristic.
void gattDescriptorAdded(GattDescriptorRemotePtr descriptor)
Indicates that a new descriptor was added (eg.
PendingCall * startNotify()
Start notifying the value of the GATT characteristic.
void characteristicChanged(GattCharacteristicRemotePtr characteristic)
Indicates that at least one of the characteristic's properties have changed.
void MTUChanged(quint16 MTU)
Indicates that characteristic's MTU have changed.
void notifyingChanged(bool notifying)
Indicates that characteristic's notifying state have changed.
GattCharacteristicRemotePtr toSharedPtr() const
Returns a shared pointer from this.
void writeAcquiredChanged(bool writeAcquired)
Indicates that characteristic's writeAcquired state have changed.
void handleChanged(quint16 handle)
Indicates that characteristic's handle have changed.
void uuidChanged(const QString &uuid)
Indicates that characteristic's uuid have changed.
PendingCall * readValue(const QVariantMap &options)
Read the value of the GATT characteristic.
QString uuid() const
Returns an uuid of the characteristic.
PendingCall * setHandle(quint16 handle)
Sets the characteristic handle.
bool isWriteAcquired() const
Returns whether writeAcquired for the characteristic.
void gattDescriptorChanged(GattDescriptorRemotePtr descriptor)
Indicates that at least one of the descriptor's properties have changed.
void notifyAcquiredChanged(bool notifyAcquired)
Indicates that characteristic's notifyAcquired state have changed.
void flagsChanged(QStringList flags)
Indicates that characteristic's flags have changed.
quint16 handle() const
Returns characteristic handle.
void gattDescriptorRemoved(GattDescriptorRemotePtr descriptor)
Indicates that a descriptor was removed.
void descriptorsChanged(QList< GattDescriptorRemotePtr > descriptors)
Indicates that characteristic descriptors list has changed.
QList< GattDescriptorRemotePtr > descriptors() const
Returns object paths representing the included services of this service.
bool isNotifying() const
Returns whether the characteristic is notifying.
QByteArray value() const
Returns an value of the characteristic.
Pending method call.
Definition pendingcall.h:33