Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of OmniWheels by
sn_coap_hdr_ Struct Reference
Main CoAP message struct. More...
#include <sn_coap_header.h>
Data Fields | |
| uint8_t | token_len | 
| 1-8 bytes.   | |
| sn_coap_status_e | coap_status | 
| Used for telling to User special cases when parsing message.   | |
| sn_coap_msg_code_e | msg_code | 
| Empty: 0; Requests: 1-31; Responses: 64-191.   | |
| sn_coap_msg_type_e | msg_type | 
| Confirmable, Non-Confirmable, Acknowledgement or Reset.   | |
| sn_coap_content_format_e | content_format | 
| Set to COAP_CT_NONE if not used.   | |
| uint16_t | msg_id | 
| Message ID.   | |
| uint16_t | uri_path_len | 
| 0-255 bytes.   | |
| uint16_t | payload_len | 
| Must be set to zero if not used.   | |
| uint8_t * | token_ptr | 
| Must be set to NULL if not used.   | |
| uint8_t * | uri_path_ptr | 
| Must be set to NULL if not used.   | |
| uint8_t * | payload_ptr | 
| Must be set to NULL if not used.   | |
| sn_coap_options_list_s * | options_list_ptr | 
| Must be set to NULL if not used.   | |
Detailed Description
Main CoAP message struct.
Definition at line 209 of file sn_coap_header.h.
Field Documentation
Used for telling to User special cases when parsing message.
Definition at line 212 of file sn_coap_header.h.
Set to COAP_CT_NONE if not used.
Definition at line 216 of file sn_coap_header.h.
Empty: 0; Requests: 1-31; Responses: 64-191.
Definition at line 213 of file sn_coap_header.h.
| uint16_t msg_id | 
Message ID.
Parser sets parsed message ID, builder sets message ID of built coap message
Definition at line 218 of file sn_coap_header.h.
Confirmable, Non-Confirmable, Acknowledgement or Reset.
Definition at line 215 of file sn_coap_header.h.
Must be set to NULL if not used.
Definition at line 227 of file sn_coap_header.h.
| uint16_t payload_len | 
Must be set to zero if not used.
Definition at line 220 of file sn_coap_header.h.
| uint8_t* payload_ptr | 
Must be set to NULL if not used.
Definition at line 224 of file sn_coap_header.h.
| uint8_t token_len | 
1-8 bytes.
Definition at line 210 of file sn_coap_header.h.
| uint8_t* token_ptr | 
Must be set to NULL if not used.
Definition at line 222 of file sn_coap_header.h.
| uint16_t uri_path_len | 
| uint8_t* uri_path_ptr | 
Generated on Fri Jul 22 2022 04:54:15 by
 1.7.2 
    