nRF Connect SDK API 0.1.0
|
int nrf_cloud_rest_disconnect | ( | struct nrf_cloud_rest_context *const | rest_ctx | ) |
#include <include/net/nrf_cloud_rest.h>
Closes the connection to the server. The socket pointed to by rest_ctx.connect_socket
will be closed, and rest_ctx.connect_socket
will be set to -1.
[in,out] | rest_ctx | Context for communicating with nRF Cloud's REST API. |
0 | If successful. Otherwise, a (negative) error code is returned:
|