nRF Connect SDK API 0.1.0
|
int rest_client_request | ( | struct rest_client_req_context * | req_ctx, |
struct rest_client_resp_context * | resp_ctx | ||
) |
#include <include/net/rest_client.h>
REST client request.
This function will block the calling thread until the request completes.
[in] | req_ctx | Request context containing input parameters to REST request |
[out] | resp_ctx | Response context for returning the response data. |
0,if | the REST response was received successfully. If response_len > 0, there is also body/content data in a response. http_status_code contains the actual HTTP status code. Otherwise, a (negative) error code is returned. |