CLIENT_FUNCNAME = coap_client_test_main
THREADEXEC = TASH_EXECMD_SYNC
-# mqtt test example
+# libcoap-client test example
ASRCS =
CSRCS =
ifeq ($(CONFIG_NETUTILS_LIBCOAP_DEBUG),n)
CFLAGS += -DNDEBUG
endif
-CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(APPDIR)$(DELIM)include$(DELIM)netutils$(DELIM)libcoap}
+#CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(APPDIR)$(DELIM)include$(DELIM)netutils$(DELIM)libcoap}
ifneq ($(CONFIG_BUILD_KERNEL),y)
OBJS += $(MAINOBJ)
#include <arpa/inet.h>
#include <netdb.h>
-#include "coap.h"
+#include <apps/netutils/libcoap/coap.h>
#ifndef NI_MAXHOST
#define NI_MAXHOST 1025
SERVER_FUNCNAME = coap_server_test_main
THREADEXEC = TASH_EXECMD_ASYNC
-# mqtt test example
+# libcoap-server test example
ASRCS =
CSRCS =
ifeq ($(CONFIG_NETUTILS_LIBCOAP_DEBUG),n)
CFLAGS += -DNDEBUG
endif
-CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(APPDIR)$(DELIM)include$(DELIM)netutils$(DELIM)libcoap}
+#CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(APPDIR)$(DELIM)include$(DELIM)netutils$(DELIM)libcoap}
ifneq ($(CONFIG_BUILD_KERNEL),y)
OBJS += $(MAINOBJ)
#include <errno.h>
#include <signal.h>
-#include "coap.h"
+#include <apps/netutils/libcoap/coap.h>
#define COAP_RESOURCE_CHECK_TIME 2
#ifndef _COAP_ADDRESS_H_
#define _COAP_ADDRESS_H_
-#include "config.h"
+#include <apps/netutils/libcoap/config.h>
#ifdef HAVE_ASSERT_H
#include <assert.h>
#ifndef _COAP_ASYNC_H_
#define _COAP_ASYNC_H_
-#include "config.h"
-#include "net.h"
+#include <apps/netutils/libcoap/config.h>
+#include <apps/netutils/libcoap/net.h>
#ifndef WITHOUT_ASYNC
#ifndef _COAP_BLOCK_H_
#define _COAP_BLOCK_H_
-#include "option.h"
-#include "encode.h"
-#include "pdu.h"
+#include <apps/netutils/libcoap/option.h>
+#include <apps/netutils/libcoap/encode.h>
+#include <apps/netutils/libcoap/pdu.h>
/**
* @defgroup block Block Transfer
extern "C" {
#endif
-#include "config.h"
-#include "debug.h"
-#include "mem.h"
-#include "coap_list.h"
-#include "pdu.h"
-#include "option.h"
-#include "net.h"
-#include "encode.h"
-#include "str.h"
-#include "uri.h"
-#include "async.h"
-#include "resource.h"
-#include "subscribe.h"
-#include "block.h"
+#include <apps/netutils/libcoap/config.h>
+#include <apps/netutils/libcoap/debug.h>
+#include <apps/netutils/libcoap/mem.h>
+#include <apps/netutils/libcoap/coap_list.h>
+#include <apps/netutils/libcoap/pdu.h>
+#include <apps/netutils/libcoap/option.h>
+#include <apps/netutils/libcoap/net.h>
+#include <apps/netutils/libcoap/encode.h>
+#include <apps/netutils/libcoap/str.h>
+#include <apps/netutils/libcoap/uri.h>
+#include <apps/netutils/libcoap/async.h>
+#include <apps/netutils/libcoap/resource.h>
+#include <apps/netutils/libcoap/subscribe.h>
+#include <apps/netutils/libcoap/block.h>
#ifdef __cplusplus
}
extern "C" {
#endif
-#include "config.h"
+#include <apps/netutils/libcoap/config.h>
/**
* @defgroup clock Clock Handling
#ifndef _COAP_DEBUG_H_
#define _COAP_DEBUG_H_
-#include "config.h"
+#include <apps/netutils/libcoap/config.h>
#ifndef COAP_DEBUG_FD
#define COAP_DEBUG_FD stdout
#define warn(...) coap_log(LOG_WARNING, __VA_ARGS__)
#define debug(...) coap_log(LOG_DEBUG, __VA_ARGS__)
-#include "pdu.h"
+#include <apps/netutils/libcoap/pdu.h>
void coap_show_pdu(const coap_pdu_t *);
struct coap_address_t;
#include <tinyara/config.h>
-#ifdef __TINYARA__
+#if defined (__TINYARA__)
#include <string.h>
#else
#if (BSD >= 199103) || defined(WITH_CONTIKI)
#ifndef _COAP_HASHKEY_H_
#define _COAP_HASHKEY_H_
-#include "str.h"
+#include <apps/netutils/libcoap/str.h>
typedef unsigned char coap_key_t[4];
extern "C" {
#endif
-#include "config.h"
+#include <apps/netutils/libcoap/config.h>
#ifdef HAVE_ASSERT_H
#include <assert.h>
#include <net/lwip/ipv4/ip_addr.h>
#endif
-#include "option.h"
-#include "address.h"
-#include "prng.h"
-#include "pdu.h"
-#include "coap_time.h"
+#include <apps/netutils/libcoap/option.h>
+#include <apps/netutils/libcoap/address.h>
+#include <apps/netutils/libcoap/prng.h>
+#include <apps/netutils/libcoap/pdu.h>
+#include <apps/netutils/libcoap/coap_time.h>
struct coap_queue_t;
#ifndef _OPTION_H_
#define _OPTION_H_
-#include "bits.h"
-#include "pdu.h"
+#include <apps/netutils/libcoap/bits.h>
+#include <apps/netutils/libcoap/pdu.h>
/**
* Use byte-oriented access methods here because sliding a complex
#ifndef _PDU_H_
#define _PDU_H_
-#include "config.h"
-#include "coap_list.h"
-#include "uri.h"
+#include <apps/netutils/libcoap/config.h>
+#include <apps/netutils/libcoap/coap_list.h>
+#include <apps/netutils/libcoap/uri.h>
#ifdef WITH_LWIP
#include <net/lwip/pbuf.h>
#ifndef _COAP_PRNG_H_
#define _COAP_PRNG_H_
-#include "config.h"
+#include <apps/netutils/libcoap/config.h>
/**
* @defgroup prng Pseudo Random Numbers
#ifndef _COAP_RESOURCE_H_
#define _COAP_RESOURCE_H_
-#include "config.h"
-#include "t_list.h"
+#include <apps/netutils/libcoap/config.h>
+#include <apps/netutils/libcoap/t_list.h>
#if defined(HAVE_ASSERT_H) && !defined(assert)
#include <assert.h>
#ifndef WITH_CONTIKI
#ifdef COAP_RESOURCES_NOHASH
-#include "utlist.h"
+#include <apps/netutils/libcoap/utlist.h>
#else
-#include "uthash.h"
+#include <apps/netutils/libcoap/uthash.h>
#endif
#else /* WITH_CONTIKI */
#endif /* WITH_CONTIKI */
-#include "hashkey.h"
-#include "async.h"
-#include "str.h"
-#include "pdu.h"
-#include "net.h"
-#include "subscribe.h"
+#include <apps/netutils/libcoap/hashkey.h>
+#include <apps/netutils/libcoap/async.h>
+#include <apps/netutils/libcoap/str.h>
+#include <apps/netutils/libcoap/pdu.h>
+#include <apps/netutils/libcoap/net.h>
+#include <apps/netutils/libcoap/subscribe.h>
/** Definition of message handler function (@sa coap_resource_t). */
typedef void (*coap_method_handler_t)
#ifndef _COAP_SUBSCRIBE_H_
#define _COAP_SUBSCRIBE_H_
-#include "config.h"
-#include "address.h"
+#include <apps/netutils/libcoap/config.h>
+#include <apps/netutils/libcoap/address.h>
/**
* @defgroup observe Resource observation
}
#else /* WITH_CONTIKI */
-#include "list.h"
+#include <apps/netutils/libcoap/list.h>
#endif /* WITH_CONTIKI */
#endif /* _DTLS_LIST_H_ */
#ifndef _COAP_URI_H_
#define _COAP_URI_H_
-#include "hashkey.h"
-#include "str.h"
+#include <apps/netutils/libcoap/hashkey.h>
+#include <apps/netutils/libcoap/str.h>
/** Representation of parsed URI. Components may be filled from a
* string with coap_split_uri() and can be used as input for
ifeq ($(CONFIG_NETUTILS_LIBCOAP_DEBUG),n)
CFLAGS += -DNDEBUG
endif
-CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(APPDIR)$(DELIM)include$(DELIM)netutils$(DELIM)libcoap}
+#CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(APPDIR)$(DELIM)include$(DELIM)netutils$(DELIM)libcoap}
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
BIN = ..\..\libapps$(LIBEXT)
#ifndef WITHOUT_ASYNC
-#include "config.h"
+#include <apps/netutils/libcoap/config.h>
-#include "utlist.h"
+#include <apps/netutils/libcoap/utlist.h>
-#include "mem.h"
-#include "debug.h"
-#include "async.h"
+#include <apps/netutils/libcoap/mem.h>
+#include <apps/netutils/libcoap/debug.h>
+#include <apps/netutils/libcoap/async.h>
coap_async_state_t *coap_register_async(coap_context_t *context, coap_address_t *peer, coap_pdu_t *request, unsigned char flags, void *data)
{
* README for terms of use.
*/
-#include "config.h"
+#include <apps/netutils/libcoap/config.h>
#if defined(HAVE_ASSERT_H) && !defined(assert)
#include <assert.h>
#endif
-#include "debug.h"
-#include "block.h"
+#include <apps/netutils/libcoap/debug.h>
+#include <apps/netutils/libcoap/block.h>
#define min(a,b) ((a) < (b) ? (a) : (b))
* README for terms of use.
*/
-#include "config.h"
+#include <apps/netutils/libcoap/config.h>
#include <stdio.h>
#include <string.h>
-#include "debug.h"
-#include "mem.h"
-#include "coap_list.h"
+#include <apps/netutils/libcoap/debug.h>
+#include <apps/netutils/libcoap/mem.h>
+#include <apps/netutils/libcoap/coap_list.h>
int coap_insert(coap_list_t **queue, coap_list_t *node, int (*order)(void *, void *node))
{
* README for terms of use.
*/
-#include "config.h"
+#include <apps/netutils/libcoap/config.h>
#if defined(HAVE_ASSERT_H) && !defined(assert)
#include <assert.h>
#include <time.h>
#endif
-#include "debug.h"
-#include "net.h"
+#include <apps/netutils/libcoap/debug.h>
+#include <apps/netutils/libcoap/net.h>
#ifdef WITH_CONTIKI
#ifndef DEBUG
#include <stdio.h>
#endif
-#include "config.h"
-#include "encode.h"
+#include <apps/netutils/libcoap/config.h>
+#include <apps/netutils/libcoap/encode.h>
/* Carsten suggested this when fls() is not available: */
int coap_fls(unsigned int i)
* README for terms of use.
*/
-#include "hashkey.h"
+#include <apps/netutils/libcoap/hashkey.h>
/* Caution: When changing this, update COAP_DEFAULT_WKC_HASHKEY
* accordingly (see int coap_hash_path());
* README for terms of use.
*/
-#include "config.h"
+#include <apps/netutils/libcoap/config.h>
#include <ctype.h>
#include <stdio.h>
#include <net/lwip/timers.h>
#endif
-#include "debug.h"
-#include "mem.h"
-#include "str.h"
-#include "async.h"
-#include "resource.h"
-#include "option.h"
-#include "encode.h"
-#include "block.h"
-#include "net.h"
+#include <apps/netutils/libcoap/debug.h>
+#include <apps/netutils/libcoap/mem.h>
+#include <apps/netutils/libcoap/str.h>
+#include <apps/netutils/libcoap/async.h>
+#include <apps/netutils/libcoap/resource.h>
+#include <apps/netutils/libcoap/option.h>
+#include <apps/netutils/libcoap/encode.h>
+#include <apps/netutils/libcoap/block.h>
+#include <apps/netutils/libcoap/net.h>
#if defined(WITH_POSIX)
* README for terms of use.
*/
-#include "config.h"
+#include <apps/netutils/libcoap/config.h>
#if defined(HAVE_ASSERT_H) && !defined(assert)
#include <assert.h>
#include <stdio.h>
#include <string.h>
-#include "option.h"
-#include "debug.h"
+#include <apps/netutils/libcoap/option.h>
+#include <apps/netutils/libcoap/debug.h>
coap_opt_t *options_start(coap_pdu_t *pdu)
{
* README for terms of use.
*/
-#include "config.h"
+#include <apps/netutils/libcoap/config.h>
#if defined(HAVE_ASSERT_H) && !defined(assert)
#include <assert.h>
#include <arpa/inet.h>
#endif
-#include "debug.h"
-#include "pdu.h"
-#include "option.h"
-#include "encode.h"
+#include <apps/netutils/libcoap/debug.h>
+#include <apps/netutils/libcoap/pdu.h>
+#include <apps/netutils/libcoap/option.h>
+#include <apps/netutils/libcoap/encode.h>
#ifdef WITH_CONTIKI
#include "memb.h"
memb_init(&pdu_storage);
}
#else /* WITH_CONTIKI */
-#include "mem.h"
+#include <apps/netutils/libcoap/mem.h>
#endif /* WITH_CONTIKI */
void coap_pdu_clear(coap_pdu_t *pdu, size_t size)
* README for terms of use.
*/
-#include "config.h"
-#include "net.h"
-#include "debug.h"
-#include "resource.h"
-#include "subscribe.h"
+#include <apps/netutils/libcoap/config.h>
+#include <apps/netutils/libcoap/net.h>
+#include <apps/netutils/libcoap/debug.h>
+#include <apps/netutils/libcoap/resource.h>
+#include <apps/netutils/libcoap/subscribe.h>
#ifdef WITH_LWIP
#include "utlist.h"
#endif
#ifdef WITH_POSIX
-#include "utlist.h"
-#include "mem.h"
+#include <apps/netutils/libcoap/utlist.h>
+#include <apps/netutils/libcoap/mem.h>
#define COAP_MALLOC_TYPE(Type) \
((coap_##Type##_t *)coap_malloc(sizeof(coap_##Type##_t)))
* README for terms of use.
*/
-#include "config.h"
+#include <apps/netutils/libcoap/config.h>
#include <stdio.h>
-#include "debug.h"
-#include "mem.h"
-#include "str.h"
+#include <apps/netutils/libcoap/debug.h>
+#include <apps/netutils/libcoap/mem.h>
+#include <apps/netutils/libcoap/str.h>
str *coap_new_string(size_t size)
{
* README for terms of use.
*/
-#include "config.h"
+#include <apps/netutils/libcoap/config.h>
#if defined(HAVE_ASSERT_H) && !defined(assert)
#include <assert.h>
/* #include "resource.h" */
-#include "mem.h"
-#include "encode.h"
-#include "debug.h"
-#include "subscribe.h"
+#include <apps/netutils/libcoap/mem.h>
+#include <apps/netutils/libcoap/encode.h>
+#include <apps/netutils/libcoap/debug.h>
+#include <apps/netutils/libcoap/subscribe.h>
void coap_subscription_init(coap_subscription_t *s)
{
* README for terms of use.
*/
-#include "config.h"
+#include <apps/netutils/libcoap/config.h>
#if defined(HAVE_ASSERT_H) && !defined(assert)
#include <assert.h>
#include <string.h>
#include <ctype.h>
-#include "mem.h"
-#include "debug.h"
-#include "pdu.h"
-#include "option.h"
-#include "uri.h"
+#include <apps/netutils/libcoap/mem.h>
+#include <apps/netutils/libcoap/debug.h>
+#include <apps/netutils/libcoap/pdu.h>
+#include <apps/netutils/libcoap/option.h>
+#include <apps/netutils/libcoap/uri.h>
/**
* A length-safe version of strchr(). This function returns a pointer