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 apporpriate error code. If a response is not received within 2 min, the future will return NABTO_CLIENT_EC_TIMEOUT.
NABTO_CLIENT_DECL_PREFIX void NABTO_CLIENT_API nabto_client_coap_execute(NabtoClientCoap* request, NabtoClientFuture* future)
- [in] The CoAP request to execute.
- [in] The future completes when the CoAP request completes or fails.