0.01.00
otCoapHeader Struct Reference

This structure represents a CoAP header. More...

#include <include/openthread/coap.h>

Inheritance diagram for otCoapHeader:
ot::Coap::Header

Public Attributes

union {
   struct {
      uint8_t   mVersionTypeToken
 The CoAP Version, Type, and Token Length.
 
      uint8_t   mCode
 The CoAP Code.
 
      uint16_t   mMessageId
 The CoAP Message ID.
 
   }   mFields
 Structure representing a CoAP base header.
 
   uint8_t   mBytes [OT_COAP_HEADER_MAX_LENGTH]
 The raw byte encoding for the CoAP header.
 
mHeader
 The CoAP header encoding.
 
uint8_t mHeaderLength
 The CoAP header length (bytes)
 
uint16_t mOptionLast
 The last CoAP Option Number value.
 
uint16_t mFirstOptionOffset
 The byte offset for the first CoAP Option.
 
uint16_t mNextOptionOffset
 The byte offset for the next CoAP Option.
 
otCoapOption mOption
 A structure representing the current CoAP Option.
 

Detailed Description

This structure represents a CoAP header.


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