mikroSDK Reference Manual
coap_client_misc.h
Go to the documentation of this file.
1
31#ifndef _COAP_CLIENT_MISC_H
32#define _COAP_CLIENT_MISC_H
33
34//Dependencies
35#include "core/net.h"
36#include "coap/coap_client.h"
37
38//C++ guard
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43//CoAP client related functions
44error_t coapClientProcessEvents(CoapClientContext *context, systime_t timeout);
45error_t coapClientProcessRequestEvents(CoapClientRequest *request);
46
47error_t coapClientChangeRequestState(CoapClientRequest *request,
48 CoapRequestState newState);
49
50error_t coapClientMatchResponse(const CoapClientRequest *request,
51 const CoapMessage *response);
52
53error_t coapClientProcessResponse(CoapClientRequest *request,
54 const CoapMessage *response);
55
56error_t coapClientRejectResponse(CoapClientContext *context,
57 const CoapMessage *response);
58
59error_t coapClientSendAck(CoapClientContext *context, uint16_t mid);
60error_t coapClientSendReset(CoapClientContext *context, uint16_t mid);
61
62void coapClientGenerateMessageId(CoapClientContext *context,
63 CoapMessageHeader *header);
64
65void coapClientGenerateToken(CoapClientContext *context,
66 CoapMessageHeader *header);
67
68//C++ guard
69#ifdef __cplusplus
70}
71#endif
72
73#endif
CoAP client.
CoapRequestState
CoAP request states.
Definition coap_client_request.h:50
error_t
Error codes.
Definition error.h:43
TCP/IP stack core.
uint32_t systime_t
System time.
Definition os_port_none.h:90
CoAP message.
Definition coap_message.h:56