9#include "gattcharacteristic.h"
10#include "gattcharacteristic_p.h"
11#include "gattservice.h"
16GattCharacteristic::GattCharacteristic(
const QString &uuid, GattService *service)
21GattCharacteristic::GattCharacteristic(
const QString &uuid,
const QStringList &flags, GattService *service)
23 , d(new GattCharacterisiticPrivate(uuid, flags, service))
27GattCharacteristic::~GattCharacteristic() =
default;
31 if (d->m_readCallback) {
32 d->m_value = d->m_readCallback();
38void GattCharacteristic::writeValue(
const QByteArray &value)
46 Q_EMIT valueWritten(d->m_value);
49QString GattCharacteristic::uuid()
const
54const GattService *GattCharacteristic::service()
const
64void GattCharacteristic::startNotify()
67 d->m_notifying =
true;
71void GattCharacteristic::stopNotify()
73 d->m_notifying =
false;
76bool GattCharacteristic::isNotifying()
const
78 return d->m_notifying;
83 return d->m_objectPath;
86void GattCharacteristic::setReadCallback(ReadCallback callback)
88 d->m_readCallback = callback;
93#include "moc_gattcharacteristic.cpp"
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:47 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.