mikroSDK Reference Manual
coap_server_misc.h
Go to the documentation of this file.
1
31#ifndef _COAP_SERVER_MISC_H
32#define _COAP_SERVER_MISC_H
33
34//Dependencies
35#include "core/net.h"
36#include "coap/coap_server.h"
37
38//C++ guard
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43//CoAP server related functions
44void coapServerTick(CoapServerContext *context);
45
46error_t coapServerProcessRequest(CoapServerContext *context,
47 const uint8_t *data, size_t length);
48
49error_t coapServerRejectRequest(CoapServerContext *context);
50
51error_t coapServerInitResponse(CoapServerContext *context);
52
53error_t coapServerSendResponse(CoapServerContext *context,
54 const void *data, size_t length);
55
56error_t coapServerFormatReset(CoapServerContext *context, uint16_t mid);
57
58//C++ guard
59#ifdef __cplusplus
60}
61#endif
62
63#endif
CoAP server.
error_t
Error codes.
Definition error.h:43
TCP/IP stack core.