QCoapResourceDiscoveryReply Class

The QCoapResourceDiscoveryReply class holds the data of a CoAP reply for a resource discovery request. More...

Header: #include <QCoapResourceDiscoveryReply>
CMake: find_package(Qt6 REQUIRED COMPONENTS Coap)
target_link_libraries(mytarget PRIVATE Qt6::Coap)
qmake: QT += coap
Inherits: QCoapReply

Note: All functions in this class are reentrant.

Public Functions

QList<QCoapResource> resources() const

Signals

void discovered(QCoapResourceDiscoveryReply *reply, QList<QCoapResource> resources)

Detailed Description

This class is used for discovery requests. It emits the discovered() signal if and when resources are discovered. When using a multicast address for discovery, the discovered() signal will be emitted once for each response received.

Note: A QCoapResourceDiscoveryReply is a QCoapReply that stores also a list of QCoapResources.

See also QCoapClient, QCoapRequest, QCoapReply, and QCoapResource.

Member Function Documentation

[signal] void QCoapResourceDiscoveryReply::discovered(QCoapResourceDiscoveryReply *reply, QList<QCoapResource> resources)

This signal is emitted whenever a CoAP resource is discovered.

The reply parameter contains a pointer to the reply that has just been received, and resources contains a list of resources that were discovered.

See also QCoapReply::finished().

QList<QCoapResource> QCoapResourceDiscoveryReply::resources() const

Returns the list of resources.

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