coap_server_request.h
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 coapServerGetUriQuery(CoapServerContext *context, char_t *queryString, size_t maxLen)
Get Uri-Query option.
Definition: coap_server_request.c:90
error_t coapServerGetUriPath(CoapServerContext *context, char_t *path, size_t maxLen)
Get Uri-Path option.
Definition: coap_server_request.c:69
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 coapServerWritePayload(CoapServerContext *context, const void *data, size_t length)
Write payload data.
Definition: coap_server_request.c:398
error_t coapServerSetLocationQuery(CoapServerContext *context, const char_t *queryString)
Set Location-Query option.
Definition: coap_server_request.c:257
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 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
error_t coapServerSetResponseCode(CoapServerContext *context, CoapCode code)
Set response method.
Definition: coap_server_request.c:219
error_t coapServerGetPayload(CoapServerContext *context, const uint8_t **payload, size_t *payloadLen)
Get request payload.
Definition: coap_server_request.c:179
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 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
CoAP server.
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 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 coapServerGetMethodCode(CoapServerContext *context, CoapCode *code)
Get request method.
Definition: coap_server_request.c:50
error_t coapServerSetLocationPath(CoapServerContext *context, const char_t *path)
Set Location-Path option.
Definition: coap_server_request.c:237
TCP/IP stack core.
Formatting and parsing of CoAP options.
error_t coapServerSetPayload(CoapServerContext *context, const void *payload, size_t payloadLen)
Set response payload.
Definition: coap_server_request.c:374