OpenOCF / iochibity-c

Iotivity C SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iotivity-c

Note
STATUS: not very far along. The focus right now is on creating a suite of 100% C demo programs; currently example/get seems to work, example/discovery mostly works, the other stuff is pulled from the C++ examples in /resource/csdk/stack/samples, in hopes of writing equivalent or similar code in C.

docs

doc/operations.adoc has a concise summary of the kernel C API.

examples

To compile and run the examples you need a working installation of the Iotivity dev kit.

Edit source.me and then $ source source.me.

Then:

$ make server
$ make client

If you run into link problems on OS X use install_name_tool. See also $ man ld, search for "install_name".

For example, for the minimal example, to build just run make. Then run the server: ./server -o 0. Then in another terminal run one of the examples that come with the official dev kit, such as resource/examples/presenceclient or resource/examples/devicediscoveryclient. Be sure to run the server first, then the client.

debugging

OS X

The standard debugger is lldb, not GNU gdb.

Also, it looks like lldb might ignore DYLD_LIBRARY_PATH, so you might have to use install_name_tool to fix up your links. Use otool -L to see the links.

profiling

About

Iotivity C SDK

License:Eclipse Public License 1.0


Languages

Language:Shell 100.0%