QLowEnergyDescriptorData Class

QLowEnergyDescriptorData 클래스는 GATT 서비스 데이터를 생성하는 데 사용됩니다. 더 보기...

Header: #include <QLowEnergyDescriptorData>
qmake: QT += bluetooth

공용 함수

QLowEnergyDescriptorData()
QLowEnergyDescriptorData(const QBluetoothUuid &uuid, const QByteArray &value)
QLowEnergyDescriptorData(const QLowEnergyDescriptorData &other)
~QLowEnergyDescriptorData()
bool isReadable() const
bool isValid() const
bool isWritable() const
QBluetooth::AttAccessConstraints readConstraints() const
void setReadPermissions(bool readable, QBluetooth::AttAccessConstraints constraints = QBluetooth::AttAccessConstraints())
void setUuid(const QBluetoothUuid &uuid)
void setValue(const QByteArray &value)
void setWritePermissions(bool writable, QBluetooth::AttAccessConstraints constraints = QBluetooth::AttAccessConstraints())
void swap(QLowEnergyDescriptorData &other)
QBluetoothUuid uuid() const
QByteArray value() const
QBluetooth::AttAccessConstraints writeConstraints() const
QLowEnergyDescriptorData &operator=(const QLowEnergyDescriptorData &other)
bool operator!=(const QLowEnergyDescriptorData &a, const QLowEnergyDescriptorData &b)
bool operator==(const QLowEnergyDescriptorData &a, const QLowEnergyDescriptorData &b)

상세 설명

이 클래스의 객체는 QLowEnergyCharacteristicData::addDescriptor()를 통해 QLowEnergyCharacteristicData 객체에 추가할 설명자를 제공합니다.

참고: 액세스 권한과 관련된 멤버 함수는 블루투스 사양에서 해당 값에 액세스할 수 있는지 여부와 방법을 규정하지 않은 디스크립터 유형에만 적용됩니다.

QLowEnergyCharacteristicData, QLowEnergyServiceData, QLowEnergyController::addService참조하세요 .

멤버 함수 문서

QLowEnergyDescriptorData::QLowEnergyDescriptorData()

이 클래스의 유효하지 않은 객체를 새로 생성합니다.

QLowEnergyDescriptorData::QLowEnergyDescriptorData(const QBluetoothUuid &uuid, const QByteArray &value)

각각 uuidvalue 에서 제공하는 UUID와 값을 사용하여 이 클래스의 새 객체를 생성합니다.

QLowEnergyDescriptorData::QLowEnergyDescriptorData(const QLowEnergyDescriptorData &other)

other 의 복사본인 이 클래스의 새 객체를 생성합니다.

[noexcept] QLowEnergyDescriptorData::~QLowEnergyDescriptorData()

이 개체를 파괴합니다.

bool QLowEnergyDescriptorData::isReadable() const

이 디스크립터의 값을 읽을 수 있으면 true, 그렇지 않으면 false 을 반환합니다.

bool QLowEnergyDescriptorData::isValid() const

이 객체에 널이 아닌 UUID가 있는 경우에만 참을 반환합니다.

bool QLowEnergyDescriptorData::isWritable() const

이 디스크립터 값이 쓰기 가능하면 true, 그렇지 않으면 false 을 반환합니다.

QBluetooth::AttAccessConstraints QLowEnergyDescriptorData::readConstraints() const

이 디스크립터의 값을 읽을 수 있는 제약 조건을 반환합니다. 이 값은 isReadable()가 true 을 반환하는 경우에만 관련이 있습니다.

void QLowEnergyDescriptorData::setReadPermissions(bool readable, QBluetooth::AttAccessConstraints constraints = QBluetooth::AttAccessConstraints())

이 설명자의 값이 readable 인지, 그렇다면 어느 constraints 에 해당하는지 지정합니다.

setWritePermissions()도 참조하세요 .

void QLowEnergyDescriptorData::setUuid(const QBluetoothUuid &uuid)

이 설명자의 UUID를 uuid 로 설정합니다.

uuid()도 참조하세요 .

void QLowEnergyDescriptorData::setValue(const QByteArray &value)

이 디스크립터의 값을 value 로 설정합니다. 여기에 제공된 방식 그대로 피어 장치로 전송되므로 호출자는 엔디안과 같은 사항을 처리해야 합니다.

value()도 참조하세요 .

void QLowEnergyDescriptorData::setWritePermissions(bool writable, QBluetooth::AttAccessConstraints constraints = QBluetooth::AttAccessConstraints())

이 설명자의 값이 writable 인지, 그렇다면 어느 constraints 에 해당하는지 지정합니다.

setReadPermissions()도 참조하세요 .

[noexcept] void QLowEnergyDescriptorData::swap(QLowEnergyDescriptorData &other)

이 개체를 other 로 바꿉니다.

QBluetoothUuid QLowEnergyDescriptorData::uuid() const

이 디스크립터의 UUID를 반환합니다.

setUuid()도 참조하세요 .

QByteArray QLowEnergyDescriptorData::value() const

이 디스크립터의 값을 반환합니다.

setValue()도 참조하세요 .

QBluetooth::AttAccessConstraints QLowEnergyDescriptorData::writeConstraints() const

이 디스크립터의 값을 쓸 수 있는 제약 조건을 반환합니다. 이 값은 isWritable()가 true 을 반환하는 경우에만 관련이 있습니다.

QLowEnergyDescriptorData &QLowEnergyDescriptorData::operator=(const QLowEnergyDescriptorData &other)

이 객체를 other 의 복사본으로 만들고 이 객체의 새 값을 반환합니다.

관련 비회원

bool operator!=(const QLowEnergyDescriptorData &a, const QLowEnergyDescriptorData &b)

ab 이 공개 상태가 같지 않으면 true 을 반환하고, 그렇지 않으면 false 을 반환합니다.

bool operator==(const QLowEnergyDescriptorData &a, const QLowEnergyDescriptorData &b)

ab 이 공개 상태와 동일하면 true 을 반환하고, 그렇지 않으면 false 을 반환합니다.

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.