Skip to content

Struct SYN_CoapMsg

ClassList > SYN_CoapMsg

Parsed or to-be-serialized CoAP message header.

  • #include <syn_coap.h>

Public Attributes

Type Name
uint8_t code
uint16_t msg_id
const uint8_t * payload
size_t payload_len
uint8_t token
uint8_t token_len
uint8_t type

Public Attributes Documentation

variable code

uint8_t SYN_CoapMsg::code;

Request method or response code


variable msg_id

uint16_t SYN_CoapMsg::msg_id;

Message ID for deduplication


variable payload

const uint8_t* SYN_CoapMsg::payload;

Pointer to payload (NULL if none)


variable payload_len

size_t SYN_CoapMsg::payload_len;

Payload length in bytes


variable token

uint8_t SYN_CoapMsg::token[8];

Token bytes


variable token_len

uint8_t SYN_CoapMsg::token_len;

Token length (0–8)


variable type

uint8_t SYN_CoapMsg::type;

Message type (CON/NON/ACK/RST)



The documentation for this class was generated from the following file src/syntropic/net/syn_coap.h