Kaa releases
Shortcuts
Skip to end of metadata
Go to start of metadata

This guide explains how to build applications for UDOO based on the Kaa C/C++ endpoint SDKs.

Configuring UDOO board

If this is the first time you use the UDOO technology, you have to start with configuring your board. For this purpose, refer to UDOO official documentation.

Installing third-party component for C SDK

The further instructions are expected to be executed directly on the UDOO board and with the Linux installation and root permissions.

  1. Connect to the board via an micro OTG client.
  2. Install common prerequisites.

Installing third-party components for C++ SDK

The following third-party components must be installed on the UDOO board before building the C++ SDK.

  • Mandatory: Boost (min v1.54), Avro (v1.7.5 - v1.7.7), and Botan (only v1.10) libraries.
  • Optional: SQLite library. It should be installed only if you are going to use a persistent log storage for the Kaa data collection feature.

NOTE: The further instructions are expected to be executed in the order given, directly on the UDOO board, and with Linux installation and root permissions.

To install these libraries, proceed as follows:

  1. Connect to the board via a micro OTG client. 
  2. Install common prerequisites.

  3. Install Boost (v1.54 or higher).

  4. Install Avro (v1.7.5 - 1.7.7).

  5. Install Botan (v1.10).

  6. Install SQLite (latest).

Creating applications based on C++ SDK

To create an application based on the C++ SDK, at first you need to build static/shared Kaa libraries from the generated SDK and then link your application to those libraries. You can either do it manually or create some build script to automate the building process (see the Example section).

The UDOO platform allows building the source code directly on the board. The only thing you need to do prior to that is export your code onto the board. For this purpose you can use, for example, the scp utility.

Example

To quickly start with the Kaa IoT platform, you can download one of the Kaa demo applications from the Kaa Sandbox and run it on the UDOO board.

For this example, you need to download the Notification demo from the Kaa Sandbox to your host machine. After that, export the downloaded archive to the board and run the demo, as follows:

  1. Find the IP address of the UDOO board (you can use the WIFI predefault integrated one).

    UDOO board
  2. Copy the source application to the UDOO board from the host machine.

    Host machine
  3. Build and run the Notification demo from your UDOO board.

     

    UDOO board

If the build is successful, you will see the following output on the UDOO terminal:

    


Copyright © 2014-2015, CyberVision, Inc.

  • No labels