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.
| Header: | QCoapResourceDiscoveryReply |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Coap)target_link_libraries(mytarget PRIVATE Qt6::Coap) |
| qmake: | QT += coap |
| Inherits: | QCoapReply |
Public Functions
| QList<QCoapResource> resources() const |
Signals
| void discovered(QCoapResourceDiscoveryReply *reply, QList<QCoapResource> resources) |
Detailed Description
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.