nabto_device_coap_request_get_payload()
DESCRIPTION
Get the payload of a given request.
DECLARATION
NABTO_DEVICE_DECL_PREFIX NabtoDeviceError NABTO_DEVICE_API
nabto_device_coap_request_get_payload(NabtoDeviceCoapRequest* request,
void** payload,
size_t* payloadLength)
PARAMETERS
request:
- [in] The request for which to get the payload
payload:
- [out] A reference to where to put the payload reference
payloadLength:
- [out] A reference to where to put the length of the payload
RETURNS
NABTO_DEVICE_EC_OK
: on successNABTO_DEVICE_EC_NO_DATA
: if the request does not contain a payload.