otCoapHeader

#include <coap.h>

This structure represents a CoAP header.

Summary

Public attributes

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

Public attributes

mBytes

uint8_t otCoapHeader::mBytes[OT_COAP_HEADER_MAX_LENGTH]

The raw byte encoding for the CoAP header.

mCode

uint8_t otCoapHeader::mCode

The CoAP Code.

mFields

struct otCoapHeader::@0::@1 otCoapHeader::mFields

Structure representing a CoAP base header.

mFirstOptionOffset

uint16_t otCoapHeader::mFirstOptionOffset

The byte offset for the first CoAP Option.

mHeader

union otCoapHeader::@0 otCoapHeader::mHeader

The CoAP header encoding.

mHeaderLength

uint16_t otCoapHeader::mHeaderLength

The CoAP header length (bytes)

mMessageId

uint16_t otCoapHeader::mMessageId

The CoAP Message ID.

mNextOptionOffset

uint16_t otCoapHeader::mNextOptionOffset

The byte offset for the next CoAP Option.

mOption

otCoapOption otCoapHeader::mOption

A structure representing the current CoAP Option.

mOptionLast

uint16_t otCoapHeader::mOptionLast

The last CoAP Option Number value.

mVersionTypeToken

uint8_t otCoapHeader::mVersionTypeToken

The CoAP Version, Type, and Token Length.