nabto_client_coap_get_response_status_code()

DESCRIPTION

Get response status. encoded as e.g. 404, 200, 203, 500.

DECLARATION

NABTO_CLIENT_DECL_PREFIX NabtoClientError NABTO_CLIENT_API
nabto_client_coap_get_response_status_code(NabtoClientCoap* coap, uint16_t* statusCode)

PARAMETERS

coap:
the coap request/response object.
statusCode:
[out] the statusCode for the request

RETURN VALUES

NABTO_CLIENT_EC_OK if the status code exists. NABTO_CLIENT_EC_INVALID_STATE if there’s no response yet.

EXAMPLES

None.