Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
coap_client_response_data Struct Reference

Representation for CoAP client response data. More...

#include <zephyr/net/coap_client.h>

Data Fields

int16_t result_code
 Result code of the response.
const struct coap_packetpacket
 A pointer to the response CoAP packet.
size_t offset
 Payload offset from the beginning of a blockwise transfer.
const uint8_tpayload
 Buffer containing the payload from the response.
size_t payload_len
 Size of the payload.
bool last_block
 Indicates the last block of the response.

Detailed Description

Representation for CoAP client response data.

Field Documentation

◆ last_block

bool coap_client_response_data::last_block

Indicates the last block of the response.

◆ offset

size_t coap_client_response_data::offset

Payload offset from the beginning of a blockwise transfer.

◆ packet

const struct coap_packet* coap_client_response_data::packet

A pointer to the response CoAP packet.

NULL for error result.

◆ payload

const uint8_t* coap_client_response_data::payload

Buffer containing the payload from the response.

NULL for empty payload.

◆ payload_len

size_t coap_client_response_data::payload_len

Size of the payload.

◆ result_code

int16_t coap_client_response_data::result_code

Result code of the response.

Negative if there was a failure in send. coap_response_code for positive.


The documentation for this struct was generated from the following file: