BluezQt
gattcharacteristicremote.cpp
17GattCharacteristicRemote::GattCharacteristicRemote(const QString &path, const QVariantMap &properties, GattServiceRemotePtr service)
84 return new PendingCall(d->setDBusProperty(QStringLiteral("Handle"), QVariant::fromValue(handle)), PendingCall::ReturnVoid, this);
94 return new PendingCall(d->m_bluezGattCharacteristic->ReadValue(options), PendingCall::ReturnByteArray, this);
97PendingCall *GattCharacteristicRemote::writeValue(const QByteArray &value, const QVariantMap &options)
99 return new PendingCall(d->m_bluezGattCharacteristic->WriteValue(value,options), PendingCall::ReturnVoid, this);
104 return new PendingCall(d->m_bluezGattCharacteristic->StartNotify(), PendingCall::ReturnVoid, this);
109 return new PendingCall(d->m_bluezGattCharacteristic->StopNotify(), PendingCall::ReturnVoid, this);
bool isNotifyAcquired() const
Returns whether notifyAcquired for the characteristic.
Definition gattcharacteristicremote.cpp:52
PendingCall * confirm()
Confirmation that value of the characteristic was received.
Definition gattcharacteristicremote.cpp:112
PendingCall * stopNotify()
Stop notifying the value of the GATT characteristic.
Definition gattcharacteristicremote.cpp:107
~GattCharacteristicRemote() override
Destroys a GattCharacteristic object.
Definition gattcharacteristicremote.cpp:23
PendingCall * writeValue(const QByteArray &value, const QVariantMap &options)
Write the value of the GATT characteristic.
Definition gattcharacteristicremote.cpp:97
PendingCall * startNotify()
Start notifying the value of the GATT characteristic.
Definition gattcharacteristicremote.cpp:102
GattCharacteristicRemotePtr toSharedPtr() const
Returns a shared pointer from this.
Definition gattcharacteristicremote.cpp:27
PendingCall * readValue(const QVariantMap &options)
Read the value of the GATT characteristic.
Definition gattcharacteristicremote.cpp:92
PendingCall * setHandle(quint16 handle)
Sets the characteristic handle.
Definition gattcharacteristicremote.cpp:82
bool isWriteAcquired() const
Returns whether writeAcquired for the characteristic.
Definition gattcharacteristicremote.cpp:47
bool isNotifying() const
Returns whether the characteristic is notifying.
Definition gattcharacteristicremote.cpp:57
QString path(const QString &relativePath)
KGuiItem properties()
QVariant fromValue(T &&value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.