Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .cproject
Original file line number Diff line number Diff line change
Expand Up @@ -217,14 +217,14 @@
<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets">
<buildTargets>
<target name="libCoap" path="libCoap" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<target name="mbed-coap" path="mbed-coap" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand>
<buildArguments/>
<stopOnError>true</stopOnError>
<useDefaultCommand>true</useDefaultCommand>
<runAllBuilders>true</runAllBuilders>
</target>
<target name="clean" path="libCoap" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<target name="clean" path="mbed-coap" targetID="org.eclipse.cdt.build.MakeTargetBuilder">
<buildCommand>make</buildCommand>
<buildArguments/>
<buildTarget>clean</buildTarget>
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ Backup*
docs/
yotta_modules
yotta_targets
test/libcoap/unittest/coverages
test/libcoap/unittest/results
test/mbed-coap/unittest/coverages
test/mbed-coap/unittest/results
.yotta.json
coverage/
lcov/
Expand Down
4 changes: 2 additions & 2 deletions .settings/language.settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<entry kind="includePath" name="/${ProjName}/libNsdl/src/include">
<flag value="VALUE_WORKSPACE_PATH"/>
</entry>
<entry kind="includePath" name="/${ProjName}/libCoap/src/include">
<entry kind="includePath" name="/${ProjName}/mbed-coap/src/include">
<flag value="VALUE_WORKSPACE_PATH"/>
</entry>
<entry kind="includePath" name="/libService/include">
Expand Down Expand Up @@ -100,7 +100,7 @@
<entry kind="includePath" name="/${ProjName}/libNsdl/src/include">
<flag value="VALUE_WORKSPACE_PATH"/>
</entry>
<entry kind="includePath" name="/${ProjName}/libCoap/src/include">
<entry kind="includePath" name="/${ProjName}/mbed-coap/src/include">
<flag value="VALUE_WORKSPACE_PATH"/>
</entry>
<entry kind="includePath" name="/libService/include">
Expand Down
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Makefile for combined COAP library
# Makefile for COAP library
#

# Define compiler toolchain with CC or PLATFORM variables
Expand All @@ -15,7 +15,7 @@
# OR (IAR-ARM)
# make CC=iccarm

LIB = libcoap.a
LIB = libmbedcoap.a
SRCS := \
source/sn_coap_protocol.c \
source/sn_coap_parser.c \
Expand All @@ -28,7 +28,6 @@ override CFLAGS += -Isource/include/
SERVLIB_DIR := ../libService
override CFLAGS += -I$(SERVLIB_DIR)/libService
override CFLAGS += -I.
#override CFLAGS += -Ilibcoap/

include ../libService/toolchain_rules.mk

Expand Down
4 changes: 2 additions & 2 deletions Makefile.test
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ test: $(TESTDIRS)
@rm -f lcov/index.xml
@find ./ -name '*.gcno' | xargs cp --backup=numbered -t ./coverage/
@find ./ -name '*.gcda' | xargs cp --backup=numbered -t ./coverage/
@gcovr --object-directory ./coverage --exclude-unreachable-branches -e '.*/builds/.*' -e '.*/test/.*' -e '.*/yotta_modules/.*' -e '.*/stubs/.*' -e '.*/libcoap/.*' -x -o ./lcov/gcovr.xml
@gcovr --object-directory ./coverage --exclude-unreachable-branches -e '.*/builds/.*' -e '.*/test/.*' -e '.*/yotta_modules/.*' -e '.*/stubs/.*' -e '.*/mbed-coap/.*' -x -o ./lcov/gcovr.xml
@lcov -d test/. -c -o $(COVERAGEFILE)
@lcov -q -r $(COVERAGEFILE) "/usr*" -o $(COVERAGEFILE)
@lcov -q -r $(COVERAGEFILE) "/test*" -o $(COVERAGEFILE)
@lcov -q -r $(COVERAGEFILE) "/mbed-client-libservice*" -o $(COVERAGEFILE)
@genhtml -q $(COVERAGEFILE) --show-details --output-directory lcov/html
@echo libcoap module unit tests built
@echo mbed-coap module unit tests built

$(TESTDIRS):
@make -C $(@:build-%=%)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# libcoap
# mbed-coap
CoAP C library - Builder and Parser for CoAP messages
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions module.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "libcoap",
"name": "mbed-coap",
"version": "4.0.0",
"description": "COAP library",
"keywords": [
Expand All @@ -18,8 +18,8 @@
"targetDependencies": {},
"author": "Yogesh Pande <[email protected]>",
"repository": {
"url": "https://github.com/ARMmbed/libcoap.git",
"url": "https://github.com/ARMmbed/mbed-coap.git",
"type": "git"
},
"homepage": "https://github.com/ARMmbed/libcoap"
"homepage": "https://github.com/ARMmbed/mbed-coap"
}
2 changes: 1 addition & 1 deletion run_unit_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.

echo
echo "Build libcoap C unit tests"
echo "Build mbed-coap C unit tests"
echo

yt target x86-linux-native
Expand Down
2 changes: 1 addition & 1 deletion source/include/sn_coap_protocol_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include "ns_list.h"
#include "sn_coap_header_internal.h"
#include "libcoap/sn_config.h"
#include "mbed-coap/sn_config.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion source/sn_coap_builder.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <string.h> /* For memset() and memcpy() */

#include "ns_types.h"
#include "libcoap/sn_coap_header.h"
#include "mbed-coap/sn_coap_header.h"
#include "sn_coap_header_internal.h"
#include "sn_coap_protocol_internal.h"
#include "mbed-trace/mbed_trace.h"
Expand Down
4 changes: 2 additions & 2 deletions source/sn_coap_header_check.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

/* * * * INCLUDE FILES * * * */
#include "ns_types.h"
#include "libcoap/sn_coap_header.h"
#include "libcoap/sn_coap_protocol.h"
#include "mbed-coap/sn_coap_header.h"
#include "mbed-coap/sn_coap_protocol.h"
#include "sn_coap_header_internal.h"
#include "sn_coap_protocol_internal.h"

Expand Down
4 changes: 2 additions & 2 deletions source/sn_coap_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
#include <string.h> /* For memset() and memcpy() */

#include "ns_types.h"
#include "libcoap/sn_coap_header.h"
#include "libcoap/sn_coap_protocol.h"
#include "mbed-coap/sn_coap_header.h"
#include "mbed-coap/sn_coap_protocol.h"
#include "sn_coap_header_internal.h"
#include "sn_coap_protocol_internal.h"

Expand Down
2 changes: 1 addition & 1 deletion source/sn_coap_protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#endif

#include "ns_types.h"
#include "libcoap/sn_coap_protocol.h"
#include "mbed-coap/sn_coap_protocol.h"
#include "sn_coap_header_internal.h"
#include "sn_coap_protocol_internal.h"
#include "randLIB.h"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ INCLUDE_DIRS =\
../stubs\
../../../..\
../../../../source\
../../../../libcoap\
../../../../mbed-coap\
../../../../yotta_modules/nanostack-libservice/mbed-client-libservice\
../../../../yotta_modules/mbed-trace\
../../../../yotta_modules/nanostack-randlib/mbed-client-randlib\
Expand Down
File renamed without changes.