QCoapReply#

The QCoapReply class holds the data of a CoAP reply. More

Inheritance diagram of PySide6.QtCoap.QCoapReply

Inherited by: QCoapResourceDiscoveryReply

Synopsis#

Functions#

Signals#

Detailed Description#

The QCoapReply contains data related to a request sent with the QCoapClient .

The finished() signal is emitted when the response is fully received or when the request fails.

For Observe requests specifically, the notified() signal is emitted whenever a notification is received.

class PySide6.QtCoap.QCoapReply#
PySide6.QtCoap.QCoapReply.abortRequest()#

Aborts the request immediately and emits the aborted(const QCoapToken &token) signal if the request was not finished.

PySide6.QtCoap.QCoapReply.aborted(token)#
Parameters

tokenPySide6.QtCore.QByteArray

PySide6.QtCoap.QCoapReply.error(reply, error)#
Parameters
PySide6.QtCoap.QCoapReply.errorReceived()#
Return type

Error

Returns the error of the reply or QCoapReply::NoError if there is no error.

PySide6.QtCoap.QCoapReply.finished(reply)#
Parameters

replyPySide6.QtCoap.QCoapReply

PySide6.QtCoap.QCoapReply.isAborted()#
Return type

bool

Returns true if the request has been aborted.

PySide6.QtCoap.QCoapReply.isFinished()#
Return type

bool

Returns true if the request is finished.

See also

finished()

PySide6.QtCoap.QCoapReply.isRunning()#
Return type

bool

Returns true if the request is running.

PySide6.QtCoap.QCoapReply.isSuccessful()#
Return type

bool

Returns true if the request finished with no error.

PySide6.QtCoap.QCoapReply.message()#
Return type

PySide6.QtCoap.QCoapMessage

Returns the contained message.

PySide6.QtCoap.QCoapReply.method()#
Return type

Method

Returns the method of the associated request.

PySide6.QtCoap.QCoapReply.notified(reply, message)#
Parameters
PySide6.QtCoap.QCoapReply.request()#
Return type

PySide6.QtCoap.QCoapRequest

Returns the associated request.

PySide6.QtCoap.QCoapReply.responseCode()#
Return type

ResponseCode

Returns the response code of the request.

PySide6.QtCoap.QCoapReply.url()#
Return type

PySide6.QtCore.QUrl

Returns the target uri of the associated request.