diff options
Diffstat (limited to 'src/coap/qcoapmessage.cpp')
-rw-r--r-- | src/coap/qcoapmessage.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/coap/qcoapmessage.cpp b/src/coap/qcoapmessage.cpp index 49e8030..d07611c 100644 --- a/src/coap/qcoapmessage.cpp +++ b/src/coap/qcoapmessage.cpp @@ -371,9 +371,15 @@ void QCoapMessage::setMessageId(quint16 id) } /*! - Sets the message payload to \a payload. + Sets the message payload to \a payload. The payload can be represented in + one of the content formats defined in \l {CoAP Content-Formats Registry}. - \sa payload() + \note CoAP supports common content formats such as XML, JSON, and so on, but + these are text based and consequently heavy both in payload and in processing. + One of the recommended content formats to use with CoAP is CBOR, which is + designed to be used in such contexts. + + \sa payload(), QCborStreamWriter, QCborStreamReader */ void QCoapMessage::setPayload(const QByteArray &payload) { |