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

None.

RETURN VALUES

NABTO_DEVICE_EC_OK iff response has a contentFormat NABTO_DEVICE_EC_NO_DATA if the response does not have a content format NABTO_DEVICE_EC_INVALID_STATE if no response is ready

EXAMPLES

None.