coap_option.c
Go to the documentation of this file.
54 {COAP_OPT_IF_NONE_MATCH, TRUE, FALSE, FALSE, FALSE, "If-None-Match", COAP_OPT_FORMAT_EMPTY, 0, 0},
57 {COAP_OPT_LOCATION_PATH, FALSE, FALSE, FALSE, TRUE, "Location-Path", COAP_OPT_FORMAT_STRING, 0, 255},
59 {COAP_OPT_CONTENT_FORMAT, FALSE, FALSE, FALSE, FALSE, "Content-Format", COAP_OPT_FORMAT_UINT, 0, 2},
63 {COAP_OPT_LOCATION_QUERY, FALSE, FALSE, FALSE, TRUE, "Location-Query", COAP_OPT_FORMAT_STRING, 0, 255},
68 {COAP_OPT_PROXY_SCHEME, TRUE, TRUE, FALSE, FALSE, "Proxy-Scheme", COAP_OPT_FORMAT_STRING, 1, 255},
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
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
error_t coapParseOptions(const uint8_t *p, size_t length, size_t *consumed)
Parse the list of CoAP options.
Definition: coap_option.c:81
error_t coapDeleteOption(CoapMessage *message, uint16_t optionNum, uint_t optionIndex)
Remove an option from the specified CoAP message.
Definition: coap_option.c:688
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
const CoapOptionParameters coapOptionList[]
List of supported CoAP options.
Definition: coap_option.c:49
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
const CoapOptionParameters * coapGetOptionParameters(uint16_t optionNum)
Retrieve parameters for a given option number.
Definition: coap_option.c:950
CoAP client.
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
CoAP server.
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
TCP/IP stack core.
error_t coapParseMessageHeader(const uint8_t *p, size_t length, size_t *consumed)
Parse CoAP message header.
Definition: coap_message.c:112
error_t coapFormatOption(uint8_t *p, uint16_t prevOptionNum, CoapOption *option, size_t *written)
Format CoAP option.
Definition: coap_option.c:262
Formatting and parsing of CoAP options.
Debugging facilities.