mikroSDK Reference Manual
coap_debug.h
Go to the documentation of this file.
1
31#ifndef _COAP_DEBUG_H
32#define _COAP_DEBUG_H
33
34//Dependencies
35#include "core/net.h"
36#include "coap/coap_common.h"
37
38//C++ guard
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43
48typedef struct
49{
50 uint8_t value;
51 const char_t *name;
53
54
55//CoAP related functions
56error_t coapDumpMessage(const void *message, size_t length);
57error_t coapDumpMessageHeader(const uint8_t *p, size_t length, size_t *consumed);
58error_t coapDumpOptions(const uint8_t *p, size_t length, size_t *consumed);
59error_t coapDumpOption(const CoapOption *option);
60
61const char_t *coapGetParamName(uint_t value, const CoapParamName *paramList,
62 size_t paramListLen);
63
64//C++ guard
65#ifdef __cplusplus
66}
67#endif
68
69#endif
Definitions common to CoAP client and server.
error_t
Error codes.
Definition error.h:43
TCP/IP stack core.
CoAP option.
Definition coap_option.h:217
Parameter value/name binding.
Definition coap_debug.h:49