mikroSDK Reference Manual
coap_client_block.h
Go to the documentation of this file.
1
31#ifndef _COAP_CLIENT_BLOCK_H
32#define _COAP_CLIENT_BLOCK_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 coapClientSetTxBlockSize(CoapClientRequest *request, uint_t blockSize);
45error_t coapClientSetRxBlockSize(CoapClientRequest *request, uint_t blockSize);
46
47error_t coapClientWriteBody(CoapClientRequest *request, const void *data,
48 size_t length, size_t *written, bool_t last);
49
50error_t coapClientReadBody(CoapClientRequest *request, void *data,
51 size_t size, size_t *received);
52
53CoapBlockSize coapClientGetMaxBlockSize(void);
54
55//C++ guard
56#ifdef __cplusplus
57}
58#endif
59
60#endif
CoAP client.
CoapBlockSize
Block size parameter.
Definition coap_option.h:200
error_t
Error codes.
Definition error.h:43
TCP/IP stack core.