nabto_client_coap_get_response_content_format()
DESCRIPTION
Get content type of the payload if one exists.
DECLARATION
NABTO_CLIENT_DECL_PREFIX NabtoClientError NABTO_CLIENT_API
nabto_client_coap_get_response_content_format(NabtoClientCoap* coap, uint16_t* contentType)
PARAMETERS
coap:
- [in] The coap request/response object.
contentType:
- [out] The content type if it exists.
RETURNS
NABTO_DEVICE_EC_OK
: if response has a contentFormatNABTO_DEVICE_EC_NO_DATA
: if the response does not have a content formatNABTO_DEVICE_EC_INVALID_STATE
: if no response is ready