coap_server_request.c
error_t coapSetCode(CoapMessage *message, CoapCode code)
Set method or response code.
Definition: coap_message.c:201
error_t coapServerSetOpaqueOption(CoapServerContext *context, uint16_t optionNum, uint_t optionIndex, const uint8_t *optionValue, size_t optionLen)
Add an opaque option to the CoAP response.
Definition: coap_server_request.c:280
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 coapGetPayload(const CoapMessage *message, const uint8_t **payload, size_t *payloadLen)
Get CoAP message payload.
Definition: coap_message.c:324
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 coapServerDeleteOption(CoapServerContext *context, uint16_t optionNum, uint_t optionIndex)
Remove an option from the CoAP response.
Definition: coap_server_request.c:354
error_t coapServerReadPayload(CoapServerContext *context, void *data, size_t size, size_t *length)
Read request payload data.
Definition: coap_server_request.c:200
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 coapServerSetResponseCode(CoapServerContext *context, CoapCode code)
Set response method.
Definition: coap_server_request.c:219
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
error_t coapServerSetLocationQuery(CoapServerContext *context, const char_t *queryString)
Set Location-Query option.
Definition: coap_server_request.c:257
error_t coapServerWritePayload(CoapServerContext *context, const void *data, size_t length)
Write payload data.
Definition: coap_server_request.c:398
error_t coapServerGetStringOption(CoapServerContext *context, uint16_t optionNum, uint_t optionIndex, const char_t **optionValue, size_t *optionLen)
Read a string option from the CoAP request.
Definition: coap_server_request.c:136
error_t coapServerSetPayload(CoapServerContext *context, const void *payload, size_t payloadLen)
Set response payload.
Definition: coap_server_request.c:374
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
error_t coapServerSetStringOption(CoapServerContext *context, uint16_t optionNum, uint_t optionIndex, const char_t *optionValue)
Add a string option to the CoAP response.
Definition: coap_server_request.c:306
CoAP request handling.
error_t coapServerGetOpaqueOption(CoapServerContext *context, uint16_t optionNum, uint_t optionIndex, const uint8_t **optionValue, size_t *optionLen)
Read an opaque option from the CoAP request.
Definition: coap_server_request.c:113
error_t coapServerGetUintOption(CoapServerContext *context, uint16_t optionNum, uint_t optionIndex, uint32_t *optionValue)
Read an uint option from the CoAP request.
Definition: coap_server_request.c:158
error_t coapServerGetUriPath(CoapServerContext *context, char_t *path, size_t maxLen)
Get Uri-Path option.
Definition: coap_server_request.c:69
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 coapServerSetUintOption(CoapServerContext *context, uint16_t optionNum, uint_t optionIndex, uint32_t optionValue)
Add a uint option to the CoAP response.
Definition: coap_server_request.c:333
error_t coapGetCode(const CoapMessage *message, CoapCode *code)
Get method or response code.
Definition: coap_message.c:226
error_t coapServerGetPayload(CoapServerContext *context, const uint8_t **payload, size_t *payloadLen)
Get request payload.
Definition: coap_server_request.c:179
error_t coapWritePayload(CoapMessage *message, const void *data, size_t length)
Write payload data.
Definition: coap_message.c:386
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 coapServerSetLocationPath(CoapServerContext *context, const char_t *path)
Set Location-Path option.
Definition: coap_server_request.c:237
error_t coapServerGetMethodCode(CoapServerContext *context, CoapCode *code)
Get request method.
Definition: coap_server_request.c:50
error_t coapReadPayload(CoapMessage *message, void *data, size_t size, size_t *length)
Read payload data.
Definition: coap_message.c:468
Debugging facilities.
error_t coapServerGetUriQuery(CoapServerContext *context, char_t *queryString, size_t maxLen)
Get Uri-Query option.
Definition: coap_server_request.c:90
error_t coapSetPayload(CoapMessage *message, const void *payload, size_t payloadLen)
Set CoAP message payload.
Definition: coap_message.c:252