coap_server_misc.c
error_t coapServerFormatReset(CoapServerContext *context, uint16_t mid)
Format Reset message.
Definition: coap_server_misc.c:412
error_t coapSetCode(CoapMessage *message, CoapCode code)
Set method or response code.
Definition: coap_message.c:201
error_t coapServerRejectRequest(CoapServerContext *context)
Reject a CoAP request.
Definition: coap_server_misc.c:255
error_t coapServerProcessRequest(CoapServerContext *context, const uint8_t *data, size_t length)
Process CoAP request.
Definition: coap_server_misc.c:114
error_t coapServerSendResponse(CoapServerContext *context, const void *data, size_t length)
Send CoAP response.
Definition: coap_server_misc.c:349
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
Helper functions for CoAP server.
void coapServerTick(CoapServerContext *context)
Handle periodic operations.
Definition: coap_server_misc.c:52
error_t coapGetType(const CoapMessage *message, CoapMessageType *type)
Get message type.
Definition: coap_message.c:176
bool_t ipCompAddr(const IpAddr *ipAddr1, const IpAddr *ipAddr2)
Compare IP addresses.
Definition: ip.c:317
void coapServerDeleteSession(CoapDtlsSession *session)
Delete DTLS session.
Definition: coap_server_transport.c:311
CoAP server.
error_t coapGetCode(const CoapMessage *message, CoapCode *code)
Get method or response code.
Definition: coap_message.c:226
Data logging functions for debugging purpose (CoAP)
Transport protocol abstraction layer.
error_t tlsWrite(TlsContext *context, const void *data, size_t length, size_t *written, uint_t flags)
Send application data to the remote host using TLS.
Definition: tls.c:1854
error_t socketSendTo(Socket *socket, const IpAddr *destIpAddr, uint16_t destPort, const void *data, size_t length, size_t *written, uint_t flags)
Send a datagram to a specific destination.
Definition: socket.c:1507
error_t coapParseMessage(const CoapMessage *message)
Parse CoAP message.
Definition: coap_message.c:51
Definitions common to CoAP client and server.
error_t coapServerInitResponse(CoapServerContext *context)
Initialize CoAP response message.
Definition: coap_server_misc.c:301
Debugging facilities.
error_t coapDumpMessage(const void *message, size_t length)
Dump CoAP message for debugging purpose.
Definition: coap_debug.c:122