Fork for workshops

Embed: (wiki syntax)

« Back to documentation index

sn_coap_options_list_ Struct Reference

sn_coap_options_list_ Struct Reference

Structure for CoAP Options. More...

#include <sn_coap_header.h>

Data Fields

uint8_t etag_len
 1-8 bytes.
uint16_t proxy_uri_len
 1-1034 bytes.
uint16_t uri_host_len
 1-255 bytes.
uint16_t location_path_len
 0-255 bytes.
uint16_t location_query_len
 0-255 bytes.
uint16_t uri_query_len
 1-255 bytes.
sn_coap_content_format_e accept
 Value 0-65535.
uint32_t max_age
 Value in seconds (default is 60)
uint32_t size1
 0-4 bytes.
uint32_t size2
 0-4 bytes.
int32_t uri_port
 Value 0-65535.
int32_t observe
 Value 0-0xffffff.
int32_t block1
 Value 0-0xffffff.
int32_t block2
 Value 0-0xffffff.
uint8_t * proxy_uri_ptr
 Must be set to NULL if not used.
uint8_t * etag_ptr
 Must be set to NULL if not used.
uint8_t * uri_host_ptr
 Must be set to NULL if not used.
uint8_t * location_path_ptr
 Must be set to NULL if not used.
uint8_t * location_query_ptr
 Must be set to NULL if not used.
uint8_t * uri_query_ptr
 Must be set to NULL if not used.

Detailed Description

Structure for CoAP Options.

Definition at line 181 of file sn_coap_header.h.


Field Documentation

Value 0-65535.

COAP_CT_NONE if not used

Definition at line 192 of file sn_coap_header.h.

int32_t block1

Value 0-0xffffff.

-1 if not used. Not for user

Definition at line 199 of file sn_coap_header.h.

int32_t block2

Value 0-0xffffff.

-1 if not used. Not for user

Definition at line 200 of file sn_coap_header.h.

uint8_t etag_len

1-8 bytes.

Repeatable

Definition at line 182 of file sn_coap_header.h.

uint8_t* etag_ptr

Must be set to NULL if not used.

Definition at line 203 of file sn_coap_header.h.

0-255 bytes.

Repeatable

Definition at line 188 of file sn_coap_header.h.

Must be set to NULL if not used.

Definition at line 205 of file sn_coap_header.h.

0-255 bytes.

Repeatable

Definition at line 189 of file sn_coap_header.h.

Must be set to NULL if not used.

Definition at line 206 of file sn_coap_header.h.

uint32_t max_age

Value in seconds (default is 60)

Definition at line 194 of file sn_coap_header.h.

int32_t observe

Value 0-0xffffff.

-1 if not used

Definition at line 198 of file sn_coap_header.h.

uint16_t proxy_uri_len

1-1034 bytes.

Definition at line 186 of file sn_coap_header.h.

uint8_t* proxy_uri_ptr

Must be set to NULL if not used.

Definition at line 202 of file sn_coap_header.h.

uint32_t size1

0-4 bytes.

Definition at line 195 of file sn_coap_header.h.

uint32_t size2

0-4 bytes.

Definition at line 196 of file sn_coap_header.h.

uint16_t uri_host_len

1-255 bytes.

Definition at line 187 of file sn_coap_header.h.

uint8_t* uri_host_ptr

Must be set to NULL if not used.

Definition at line 204 of file sn_coap_header.h.

int32_t uri_port

Value 0-65535.

-1 if not used

Definition at line 197 of file sn_coap_header.h.

uint16_t uri_query_len

1-255 bytes.

Repeatable

Definition at line 190 of file sn_coap_header.h.

uint8_t* uri_query_ptr

Must be set to NULL if not used.

Definition at line 207 of file sn_coap_header.h.