nabto_client_coap_execute()

DESCRIPTION

Execute a coap request. After this function has succeeded the response functions can be called.

If an error occurs such that the statusCode is not set on the response, the future will not return NABTO_CLIENT_EC_OK, but an appropriate error code. If a response is not received within 2 min, the future will return NABTO_CLIENT_EC_TIMEOUT.

DECLARATION

NABTO_CLIENT_DECL_PREFIX void NABTO_CLIENT_API
nabto_client_coap_execute(NabtoClientCoap* request, NabtoClientFuture* future)

PARAMETERS

request:
[in] The CoAP request to execute.
future:
[in] The future completes when the CoAP request completes or fails.

RETURN VALUES

None.

EXAMPLES

None.