KiiPlatform / KiiThingSDK

Kii IoT client SDK
1 stars 1 forks source link

What is Kii Thing SDK?

SDK developed for IoT Cloud powered by Kii.
https://developer.kii.com

Written in C and focusing embedded linux.

How to install Kii Thing SDK in your environment

Generate source package by following command.

cd KiiThingSDK
make archive

Source package libkii.tar.gz would be generated. Copy this file in your development environement and extract codes in your project.

kii_cloud.h is public APIs header file. include this file from your application.

Build and install Kii Thing SDK as shared library using CMAKE

Dependency

Bellow is the dependency to sucessfully build with CMAKE

  1. CMAKE (required)
  2. libtool (required)
  3. libcurl (required)
  4. libjansson (optional, you can build and install jansson as shared library by adding -DBUILD_JANSSON on CMAKE execution)
  5. automake (required if you want to build jansson)
Build with cmake for unix native environment

Without building jansson

mkdir build 
cd build
cmake ..
make
make install

With building jansson

mkdir build 
cd build
cmake .. -DBUILD_JANSSON=true
sudo make
sudo make install
Build with cmake for cross compilation

Without building jansson

mkdir build 
cd build
cmake -D CMAKE_TOOLCHAIN_FILE=../toolchain-crosscompiler-example.cmake ../
make
make install

With building jansson

mkdir build 
cd build
cmake -D CMAKE_TOOLCHAIN_FILE=../toolchain-crosscompiler-example.cmake ../ -DBUILD_JANSSON=true
sudo make
sudo make install

How to use it?

Please refer to https://github.com/KiiCorp/KiiThingSDK/blob/master/KiiThingSDKTests/ThingSDKBasicTests.m

Bitdeli Badge