nabto_device_virtual_coap_request_get_response_content_format()
DESCRIPTION
Get content type of the payload if one exists.
DECLARATION
NABTO_DEVICE_DECL_PREFIX NabtoDeviceError NABTO_DEVICE_API
nabto_device_virtual_coap_request_get_response_content_format(NabtoDeviceVirtualCoapRequest* coap, uint16_t* contentType)
PARAMETERS
coap:
- [in] The coap request object.
contentType:
- [out] The content type if it exists.
RETURNS
NABTO_DEVICE_EC_OK
: iff 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