coap_option.h
error_t coapFormatOption(uint8_t *p, uint16_t prevOptionNum, CoapOption *option, size_t *written)
Format CoAP option.
Definition: coap_option.c:262
error_t coapGetOption(const CoapMessage *message, uint16_t optionNum, uint_t optionIndex, const uint8_t **optionValue, size_t *optionLen)
Get the value of the specified option.
Definition: coap_option.c:571
error_t coapParseOption(const uint8_t *p, size_t length, uint16_t prevOptionNum, CoapOption *option, size_t *consumed)
Parse CoAP option.
Definition: coap_option.c:133
@ COAP_CONTENT_FORMAT_APP_PKCS7_MIME_CMC_RESP
Definition: coap_option.h:177
@ COAP_CONTENT_FORMAT_APP_PKCS7_MIME_SERVER_KEY
Definition: coap_option.h:174
@ COAP_CONTENT_FORMAT_APP_OCTET_STREAM
Definition: coap_option.h:153
@ COAP_CONTENT_FORMAT_APP_JSON_PATCH_JSON
Definition: coap_option.h:156
error_t coapDeleteOption(CoapMessage *message, uint16_t optionNum, uint_t optionIndex)
Remove an option from the specified CoAP message.
Definition: coap_option.c:688
CoAP message formatting and parsing.
@ COAP_CONTENT_FORMAT_APP_COSE_ENCRYPT
Definition: coap_option.h:162
@ COAP_CONTENT_FORMAT_APP_CBOR_DEFLATE
Definition: coap_option.h:189
@ COAP_CONTENT_FORMAT_APP_PKCS7_MIME_CMC_REQ
Definition: coap_option.h:176
@ COAP_CONTENT_FORMAT_SENML_ETCH_CBOR
Definition: coap_option.h:185
@ COAP_CONTENT_FORMAT_APP_LINK_FORMAT
Definition: coap_option.h:151
@ COAP_CONTENT_FORMAT_APP_MULTIPART_CORE
Definition: coap_option.h:160
@ COAP_CONTENT_FORMAT_SENML_ETCH_JSON
Definition: coap_option.h:184
error_t coapGetUintOption(const CoapMessage *message, uint16_t optionNum, uint_t optionIndex, uint32_t *optionValue)
Get the value of the specified uint option.
Definition: coap_option.c:651
@ COAP_CONTENT_FORMAT_APP_SENSML_CBOR
Definition: coap_option.h:170
@ COAP_CONTENT_FORMAT_APP_SENSML_JSON
Definition: coap_option.h:168
@ COAP_CONTENT_FORMAT_APP_MERGE_PATCH_JSON
Definition: coap_option.h:157
const CoapOptionParameters * coapGetOptionParameters(uint16_t optionNum)
Retrieve parameters for a given option number.
Definition: coap_option.c:950
@ COAP_CONTENT_FORMAT_APP_VND_OMA_LWM2M_JSON
Definition: coap_option.h:191
@ COAP_CONTENT_FORMAT_APP_JSON_DEFLATE
Definition: coap_option.h:188
error_t coapJoinRepeatableOption(const CoapMessage *message, uint16_t optionNum, char_t *optionValue, size_t maxLen, char_t separator)
Decode a path or query component from multiple repeatable options.
Definition: coap_option.c:877
@ COAP_CONTENT_FORMAT_APP_COAP_GROUP_JSON
Definition: coap_option.h:173
@ COAP_CONTENT_FORMAT_APP_PKCS7_MIME_CERTS_ONLY
Definition: coap_option.h:175
@ COAP_CONTENT_FORMAT_APP_VND_OMA_LWM2M_TLV
Definition: coap_option.h:190
error_t coapParseOptions(const uint8_t *p, size_t length, size_t *consumed)
Parse the list of CoAP options.
Definition: coap_option.c:81
@ COAP_CONTENT_FORMAT_APP_COSE_KEY_SET
Definition: coap_option.h:166
@ COAP_CONTENT_FORMAT_APP_VND_OCF_CBOR
Definition: coap_option.h:186
TCP/IP stack core.
error_t coapSplitRepeatableOption(CoapMessage *message, uint16_t optionNum, const char_t *optionValue, char_t separator)
Encode a path or query component into multiple repeatable options.
Definition: coap_option.c:822
error_t coapSetOption(CoapMessage *message, uint16_t optionNum, uint_t optionIndex, const uint8_t *optionValue, size_t optionLen)
Add an option to the specified CoAP message.
Definition: coap_option.c:388
@ COAP_CONTENT_FORMAT_APP_COSE_ENCRYPT0
Definition: coap_option.h:148
Definitions common to CoAP client and server.
error_t coapSetUintOption(CoapMessage *message, uint16_t optionNum, uint_t optionIndex, uint32_t optionValue)
Add a uint option to the specified CoAP message.
Definition: coap_option.c:543