To work with CCCS API, you must:
-
Include the
cccs_services.h
header file in your application source code:#include <cccs_services.h>
-
Link against the CCCS library, which is already included in the precompiled toolchain. See Application development.
The library provides a pkg-config file,
cccs.pc
, installed in the toolchain. To configure the proper compilation flags and linked libraries, add the following lines in your makefile:CFLAGS += $(shell pkg-config --cflags cccs) LDLIBS += $(shell pkg-config --libs --static cccs)
You can build your application:
-
Using the pre-compiled toolchain:
-
In command line, follow the steps in Develop with command line.
-
In Eclipse with Digi Embedded Yocto plug-in, follow the steps in Create a C/C++ project.
-
-
As part of the Digi Embedded Yocto build, follow the steps in Include ConnectCore Cloud Services applications in Digi Embedded Yocto.