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 mbed-client-c by
sn_coap_hdr_ Struct Reference
Main CoAP message struct. More...
#include <sn_coap_header.h>
Data Fields | |
sn_coap_status_e | coap_status |
Used for telling to User special cases when parsing message. | |
sn_coap_msg_type_e | msg_type |
Confirmable, Non-Confirmable, Acknowledgement or Reset. | |
sn_coap_msg_code_e | msg_code |
Empty: 0; Requests: 1-31; Responses: 64-191. | |
uint16_t | msg_id |
Message ID. | |
uint16_t | uri_path_len |
0-255 bytes. | |
uint8_t * | uri_path_ptr |
Must be set to NULL if not used. | |
uint8_t | token_len |
1-8 bytes. | |
uint8_t * | token_ptr |
Must be set to NULL if not used. | |
uint8_t | content_type_len |
0-2 bytes. | |
uint8_t * | content_type_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. | |
uint16_t | payload_len |
Must be set to zero if not used. | |
uint8_t * | payload_ptr |
Must be set to NULL if not used. |
Detailed Description
Main CoAP message struct.
Definition at line 202 of file sn_coap_header.h.
Field Documentation
Used for telling to User special cases when parsing message.
Definition at line 203 of file sn_coap_header.h.
uint8_t content_type_len |
0-2 bytes.
Definition at line 225 of file sn_coap_header.h.
uint8_t* content_type_ptr |
Must be set to NULL if not used.
Definition at line 226 of file sn_coap_header.h.
Empty: 0; Requests: 1-31; Responses: 64-191.
Definition at line 210 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 211 of file sn_coap_header.h.
Confirmable, Non-Confirmable, Acknowledgement or Reset.
Definition at line 209 of file sn_coap_header.h.
Must be set to NULL if not used.
Definition at line 229 of file sn_coap_header.h.
uint16_t payload_len |
Must be set to zero if not used.
Definition at line 235 of file sn_coap_header.h.
uint8_t* payload_ptr |
Must be set to NULL if not used.
Definition at line 236 of file sn_coap_header.h.
uint8_t token_len |
1-8 bytes.
Definition at line 222 of file sn_coap_header.h.
uint8_t* token_ptr |
Must be set to NULL if not used.
Definition at line 223 of file sn_coap_header.h.
uint16_t uri_path_len |
uint8_t* uri_path_ptr |
Generated on Wed Jul 13 2022 17:43:57 by
