Zephyr API Documentation 4.0.0-rc2
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
coap_packet Struct Reference

Representation of a CoAP Packet. More...

#include <coap.h>

Data Fields

uint8_tdata
 User allocated buffer.
 
uint16_t offset
 CoAP lib maintains offset while adding data.
 
uint16_t max_len
 Max CoAP packet data length.
 
uint8_t hdr_len
 CoAP header length.
 
uint16_t opt_len
 Total options length (delta + len + value)
 
uint16_t delta
 Used for delta calculation in CoAP packet.
 

Detailed Description

Representation of a CoAP Packet.

Field Documentation

◆ data

uint8_t* coap_packet::data

User allocated buffer.

◆ delta

uint16_t coap_packet::delta

Used for delta calculation in CoAP packet.

◆ hdr_len

uint8_t coap_packet::hdr_len

CoAP header length.

◆ max_len

uint16_t coap_packet::max_len

Max CoAP packet data length.

◆ offset

uint16_t coap_packet::offset

CoAP lib maintains offset while adding data.

◆ opt_len

uint16_t coap_packet::opt_len

Total options length (delta + len + value)


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