Skip to content

Commit 0d26c00

Browse files
Yogesh PandeYogesh Pande
authored andcommitted
Modifying file headers and Makefile to adapt from libcoap to mbed-coap
1 parent d323c3a commit 0d26c00

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ override CFLAGS += -I$(SERVLIB_DIR)/libService/
2424
NANOSTACK_DIR := ../nanostack
2525
override CFLAGS += -I$(NANOSTACK_DIR)/nanostack/
2626

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

3030

3131
EVENTLOOP_DIR := ../event-loop

coap-service/coap_service_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ extern "C" {
2626
#include <string.h>
2727

2828
#include "ns_types.h"
29-
#include "sn_coap_header.h"
29+
#include "mbed-coap/sn_coap_header.h"
3030
#include "ns_address.h"
3131

3232
/**

source/coap_message_handler.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include "nsdynmemLIB.h"
77
#include "coap_service_api_internal.h"
88
#include "coap_message_handler.h"
9-
#include "sn_coap_protocol.h"
9+
#include "mbed-coap/sn_coap_protocol.h"
1010
#include "socket_api.h"
1111
#include "ns_types.h"
1212
#include "ns_list.h"

source/coap_service_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "ns_list.h"
1111
#include "ns_trace.h"
1212
#include "nsdynmemLIB.h"
13-
#include "sn_coap_header.h"
13+
#include "mbed-coap/sn_coap_header.h"
1414
#include "coap_service_api.h"
1515
#include "coap_message_handler.h"
1616
#include "eventOS_event.h"

source/include/coap_message_handler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#define __COAP_MESSAGE_HANDLER_H__
2121

2222
#include <inttypes.h>
23-
#include "sn_coap_header.h"
23+
#include "mbed-coap/sn_coap_header.h"
2424
#include "ns_list.h"
2525

2626
#define TRANSACTION_LIFETIME 180

test/coap-service/unittest/makefile_defines.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,16 @@ INCLUDE_DIRS =\
1515
../../../../yotta_modules/nanostack-randlib/mbed-client-randlib/ \
1616
../../../../yotta_modules/nanostack-libservice/ \
1717
../../../../yotta_modules/nanostack-libservice/mbed-client-libservice/ \
18-
../../../../yotta_modules/libcoap/libcoap/ \
19-
../../../../yotta_modules/libcoap/source/include/ \
18+
../../../../yotta_modules/mbed-coap/ \
19+
../../../../yotta_modules/mbed-coap/source/include/ \
2020
../../../../yotta_modules/sal-stack-nanostack-eventloop/nanostack-event-loop/ \
2121
../../../../yotta_modules/sal-stack-nanostack-eventloop/source/ \
2222
../../../../yotta_modules/mbed-trace/ \
2323
../../../../../nanostack/nanostack/\
2424
../../../../../libService/libService/\
25-
../../../../../libcoap/libcoap/\
26-
../../../../../libcoap/source/include/\
25+
../../../../../mbed-coap/\
26+
../../../../../mbed-coap/mbed-coap\
27+
../../../../../mbed-coap/source/include/\
2728
../../../../../event-loop/nanostack-event-loop/\
2829
../../../../../event-loop/source/ \
2930
../../../../../mbedtls/include/ \

0 commit comments

Comments
 (0)