IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QCoapRequest Class

The QCoapRequest class holds a CoAP request. This request can be sent with QCoapClient.

All functions in this class are reentrant.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QCoapRequest Class

  • Header: QCoapRequest

  • qmake: QT += coap

Detailed Description

The QCoapRequest contains data needed to make CoAP frames that can be sent to the URL it holds.

See Also

Member Function Documentation

 

[explicit] QCoapRequest::QCoapRequest(const QUrl &url = QUrl(), int type = ..., const QUrl &proxyUrl = QUrl())

Constructs a QCoapRequest object with the target url, the proxy URL proxyUrl and the type of the message.

[explicit] QCoapRequest::QCoapRequest(const char *url, int type = ...)

Constructs a QCoapRequest from a string literal

QCoapRequest::QCoapRequest(const QCoapRequest &other)

Constructs a copy of the other QCoapRequest.

QCoapRequest::~QCoapRequest()

Destroys the QCoapRequest.

void QCoapRequest::enableObserve()

Sets the observe to true to make an observe request.

See Also

See also isObserve()

bool QCoapRequest::isObserve() const

Returns true if the request is an observe request.

See Also

See also enableObserve()

QtCoap::Method QCoapRequest::method() const

Returns the method of the request.

QUrl QCoapRequest::proxyUrl() const

Returns the proxy URI of the request. The request shall be sent directly if this is invalid.

See Also

See also setProxyUrl()

void QCoapRequest::setProxyUrl(const QUrl &proxyUrl)

Sets the proxy URI of the request to the given proxyUrl.

See Also

See also proxyUrl()

void QCoapRequest::setUrl(const QUrl &url)

Sets the target URI of the request to the given url.

If not indicated, the scheme of the URL will default to 'coap', and its port will default to 5683.

See Also

See also url()

QUrl QCoapRequest::url() const

Returns the target URI of the request.

See Also

See also setUrl()

QCoapRequest &QCoapRequest::operator=(const QCoapRequest &other)

Creates a copy of other.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+