nabto_device_coap_request_get_content_format()

DESCRIPTION

Get the content format of a given request.

DECLARATION

NABTO_DEVICE_DECL_PREFIX NabtoDeviceError NABTO_DEVICE_API
nabto_device_coap_request_get_content_format(NabtoDeviceCoapRequest* request,
                                             uint16_t* contentFormat)

PARAMETERS

request:
[in] The request for which to get the content format
contentFormat:
[out] A reference to where to put the content format

RETURN VALUES

NABTO_DEVICE_EC_OK on success NABTO_DEVICE_EC_NO_DATA if the content format is not available

EXAMPLES

None.