mikroSDK Reference Manual
coap_client_transport.h
Go to the documentation of this file.
1
31#ifndef _COAP_CLIENT_TRANSPORT_H
32#define _COAP_CLIENT_TRANSPORT_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 coapClientOpenConnection(CoapClientContext *context);
45
46error_t coapClientEstablishConnection(CoapClientContext *context,
47 const IpAddr *serverIpAddr, uint16_t serverPort);
48
49error_t coapClientShutdownConnection(CoapClientContext *context);
50
51void coapClientCloseConnection(CoapClientContext *context);
52
53error_t coapClientSendDatagram(CoapClientContext *context,
54 const void *data, size_t length);
55
56error_t coapClientReceiveDatagram(CoapClientContext *context,
57 void *data, size_t size, size_t *received);
58
59error_t coapClientWaitForDatagram(CoapClientContext *context,
60 systime_t timeout);
61
62//C++ guard
63#ifdef __cplusplus
64}
65#endif
66
67#endif
CoAP client.
error_t
Error codes.
Definition error.h:43
TCP/IP stack core.
uint32_t systime_t
System time.
Definition os_port_none.h:90
IP network address.
Definition ip.h:72