QCoapResourceDiscoveryReply Class
La classe QCoapResourceDiscoveryReply contiene i dati di una risposta CoAP relativa a una richiesta di individuazione delle risorse. Per saperne di più...
| Intestazione: | #include <QCoapResourceDiscoveryReply> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Coap) target_link_libraries(mytarget PRIVATE Qt6::Coap) |
| qmake: | QT += coap |
| Eredita da: | QCoapReply |
Nota: tutte le funzioni di questa classe sono rientranti.
Funzioni pubbliche
| QList<QCoapResource> | resources() const |
Segnali
| void | discovered(QCoapResourceDiscoveryReply *reply, QList<QCoapResource> resources) |
Descrizione dettagliata
Questa classe viene utilizzata per le richieste di individuazione. Emette il segnale discovered() quando vengono individuate delle risorse. Quando si utilizza un indirizzo multicast per l’individuazione, il segnale discovered() verrà emesso una volta per ogni risposta ricevuta.
Nota: un oggetto `QCoapResourceDiscoveryReply` è un ` QCoapReply ` che contiene anche un elenco di `QCoapResources`.
Vedi anche QCoapClient, QCoapRequest, QCoapReply e QCoapResource.
Documentazione sulle funzioni membro
[signal] void QCoapResourceDiscoveryReply::discovered(QCoapResourceDiscoveryReply *reply, QList<QCoapResource> resources)
Questo segnale viene emesso ogni volta che viene individuata una risorsa CoAP.
Il parametro ` reply ` contiene un puntatore alla risposta appena ricevuta, mentre ` resources ` contiene un elenco delle risorse individuate.
Vedi anche QCoapReply::finished().
QList<QCoapResource> QCoapResourceDiscoveryReply::resources() const
Restituisce l'elenco delle risorse.
© 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.