이 페이지에서

QLowEnergyDescriptorData Class

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

헤더: #include <QLowEnergyDescriptorData>
CMake: find_package(Qt6 REQUIRED COMPONENTS Bluetooth)
target_link_libraries(mytarget PRIVATE Qt6::Bluetooth)
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 객체에 추가될 디스크립터를 제공합니다.

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

QLowEnergyCharacteristicData, QLowEnergyServiceData 및 QLowEnergyController::addService도 참조하십시오 .

멤버 함수 설명서

QLowEnergyDescriptorData::QLowEnergyDescriptorData()

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

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

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

QLowEnergyDescriptorData::QLowEnergyDescriptorData(const QLowEnergyDescriptorData &other)

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

[noexcept] QLowEnergyDescriptorData::~QLowEnergyDescriptorData()

이 객체를 삭제합니다.

bool QLowEnergyDescriptorData::isReadable() const

이 디스크립터의 값을 읽을 수 있는 경우 ` true `을 반환하고, 그렇지 않은 경우 ` false `을 반환합니다.

bool QLowEnergyDescriptorData::isValid() const

이 객체가 null이 아닌 UUID를 가지고 있을 때만 true를 반환합니다.

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 로 설정합니다. 이 값은 여기에 지정된 그대로 피어 장치로 전송되므로, 호출자는 엔디안(endianness)과 같은 사항을 주의 깊게 고려해야 합니다.

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)

a 와 b 의 공개 상태가 서로 다를 경우 true 를 반환하고, 그렇지 않은 경우 false 를 반환합니다.

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

a 와 b 의 공개 상태가 동일할 경우 true 를 반환하고, 그렇지 않은 경우 false 를 반환합니다.

© 2026 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.