Skip to content

Commit

Permalink
Modifying file headers and Makefile to adapt from libcoap to mbed-coap
Browse files Browse the repository at this point in the history
  • Loading branch information
Yogesh Pande authored and Yogesh Pande committed Feb 10, 2017
1 parent d323c3a commit 0d26c00
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ override CFLAGS += -I$(SERVLIB_DIR)/libService/
NANOSTACK_DIR := ../nanostack
override CFLAGS += -I$(NANOSTACK_DIR)/nanostack/

COAP_DIR := ../libcoap
override CFLAGS += -I$(COAP_DIR)/libcoap
COAP_DIR := ../mbed-coap
override CFLAGS += -I$(COAP_DIR)/


EVENTLOOP_DIR := ../event-loop
Expand Down
2 changes: 1 addition & 1 deletion coap-service/coap_service_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ extern "C" {
#include <string.h>

#include "ns_types.h"
#include "sn_coap_header.h"
#include "mbed-coap/sn_coap_header.h"
#include "ns_address.h"

/**
Expand Down
2 changes: 1 addition & 1 deletion source/coap_message_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "nsdynmemLIB.h"
#include "coap_service_api_internal.h"
#include "coap_message_handler.h"
#include "sn_coap_protocol.h"
#include "mbed-coap/sn_coap_protocol.h"
#include "socket_api.h"
#include "ns_types.h"
#include "ns_list.h"
Expand Down
2 changes: 1 addition & 1 deletion source/coap_service_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "ns_list.h"
#include "ns_trace.h"
#include "nsdynmemLIB.h"
#include "sn_coap_header.h"
#include "mbed-coap/sn_coap_header.h"
#include "coap_service_api.h"
#include "coap_message_handler.h"
#include "eventOS_event.h"
Expand Down
2 changes: 1 addition & 1 deletion source/include/coap_message_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#define __COAP_MESSAGE_HANDLER_H__

#include <inttypes.h>
#include "sn_coap_header.h"
#include "mbed-coap/sn_coap_header.h"
#include "ns_list.h"

#define TRANSACTION_LIFETIME 180
Expand Down
9 changes: 5 additions & 4 deletions test/coap-service/unittest/makefile_defines.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,16 @@ INCLUDE_DIRS =\
../../../../yotta_modules/nanostack-randlib/mbed-client-randlib/ \
../../../../yotta_modules/nanostack-libservice/ \
../../../../yotta_modules/nanostack-libservice/mbed-client-libservice/ \
../../../../yotta_modules/libcoap/libcoap/ \
../../../../yotta_modules/libcoap/source/include/ \
../../../../yotta_modules/mbed-coap/ \
../../../../yotta_modules/mbed-coap/source/include/ \
../../../../yotta_modules/sal-stack-nanostack-eventloop/nanostack-event-loop/ \
../../../../yotta_modules/sal-stack-nanostack-eventloop/source/ \
../../../../yotta_modules/mbed-trace/ \
../../../../../nanostack/nanostack/\
../../../../../libService/libService/\
../../../../../libcoap/libcoap/\
../../../../../libcoap/source/include/\
../../../../../mbed-coap/\
../../../../../mbed-coap/mbed-coap\
../../../../../mbed-coap/source/include/\
../../../../../event-loop/nanostack-event-loop/\
../../../../../event-loop/source/ \
../../../../../mbedtls/include/ \
Expand Down

0 comments on commit 0d26c00

Please sign in to comment.