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.
Dependencies: MAX44000 PWM_Tone_Library nexpaq_mdk
Fork of LED_Demo 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 210 of file sn_coap_header.h.
Field Documentation
Used for telling to User special cases when parsing message.
Definition at line 211 of file sn_coap_header.h.
uint8_t content_type_len |
0-2 bytes.
Definition at line 233 of file sn_coap_header.h.
uint8_t* content_type_ptr |
Must be set to NULL if not used.
Definition at line 234 of file sn_coap_header.h.
Empty: 0; Requests: 1-31; Responses: 64-191.
Definition at line 218 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 219 of file sn_coap_header.h.
Confirmable, Non-Confirmable, Acknowledgement or Reset.
Definition at line 217 of file sn_coap_header.h.
Must be set to NULL if not used.
Definition at line 237 of file sn_coap_header.h.
uint16_t payload_len |
Must be set to zero if not used.
Definition at line 243 of file sn_coap_header.h.
uint8_t* payload_ptr |
Must be set to NULL if not used.
Definition at line 244 of file sn_coap_header.h.
uint8_t token_len |
1-8 bytes.
Definition at line 230 of file sn_coap_header.h.
uint8_t* token_ptr |
Must be set to NULL if not used.
Definition at line 231 of file sn_coap_header.h.
uint16_t uri_path_len |
uint8_t* uri_path_ptr |
Generated on Tue Jul 12 2022 12:29:11 by
