unicoap_message_properties_t Struct Reference

Properties of a CoAP message. More...

Detailed Description

Properties of a CoAP message.

Definition at line 300 of file message.h.

#include <message.h>

Data Fields

uint8_t * token
 CoAP token used to correlate requests to responses.
 
uint8_t token_length: UNICOAP_TOKEN_LENGTH_FIXED_WIDTH
 Length of unicoap_message_properties_t::token.
 
bool is_registration: 1
 Determines if the corresponding message is considered an Observe registration. More...
 
bool is_notification: 1
 Determines if the corresponding message is considered an Observe notification. More...
 
struct {
   unicoap_rfc7252_message_type_t   type: UNICOAP_RFC7252_MESSAGE_TYPE_FIXED_WIDTH
 RFC 7252 message type.
 
   uint16_t   id
 RFC 7252 message ID.
 
rfc7252
 RFC 7252 only properties.
 

Field Documentation

◆ is_notification

bool unicoap_message_properties_t::is_notification

Determines if the corresponding message is considered an Observe notification.

This property avoids the need to read the Observe option every time this value is needed

Definition at line 319 of file message.h.

◆ is_registration

bool unicoap_message_properties_t::is_registration

Determines if the corresponding message is considered an Observe registration.

This property avoids the need to read the Observe option every time this value is needed

Definition at line 312 of file message.h.


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