Struct 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¶
Request method or response code
variable msg_id¶
Message ID for deduplication
variable payload¶
Pointer to payload (NULL if none)
variable payload_len¶
Payload length in bytes
variable token¶
Token bytes
variable token_len¶
Token length (0–8)
variable type¶
Message type (CON/NON/ACK/RST)
The documentation for this class was generated from the following file src/syntropic/net/syn_coap.h