Provides an easy way to parse a CoRE link list. More...
Header: | #include <CoreLinkParser> |
Inherits: |
CoreLinkParser(const QByteArray & data, QObject * parent = 0) | |
QList<CoreLink> | links() const |
Provides an easy way to parse a CoRE link list.
if (reply->contentType == CoapPdu::ApplicationLink) { CoreLinkParser parser(reply->payload()); foreach (const CoreLink &link, parser.links()) { qDebug() << link; } }
See also CoreLink.
Constructs a CoRE link parser with the given parent. The given data should contain a CoRE link list from the discovery.
Returns the parsed list of CoreLinks.