Skip to content

SDK for C to connect agents and interact with Veides

License

Notifications You must be signed in to change notification settings

Veides/veides-agent-sdk-c

Repository files navigation

Veides Agent SDK for C

Build Status

This repository contains code of Veides Agent SDK for C language. It allows C developers to easily connect agents and interact with Veides platform.

Jump to:

Requirements

  • OpenSSL development package
  • CMake 3.5.0 or later
  • Paho MQTT C - optionally built and installed by this library

Build

Options available

  • VEIDES_BUILD_DEPENDENCIES - Either build dependent libraries or use system libraries. Default: OFF
  • VEIDES_INSTALL_DEPENDENCIES - Whether dependencies should be installed in the system or not. Default: OFF
  • VEIDES_BUILD_TESTS - Set to ON to build the tests. Default: OFF
  • VEIDES_BUILD_SAMPLES - To build samples or not to build. Default: ON

You can pass above configuration settings as command line options, for example to enable building dependencies and tests:

cmake .. -DVEIDES_BUILD_DEPENDENCIES=ON -DVEIDES_BUILD_TESTS=ON

Build steps

To build Veides Agent SDk from source, follow steps below:

git clone https://github.com/Veides/veides-agent-sdk-c.git
cd veides-agent-sdk-c
mkdir build && cd build
# Pass configuration settings if needed
cmake ..
make

Installation

When library is built, you can install Veides Agent SDK with:

sudo make install

To uninstall Veides Agent SDk:

sudo make uninstall

NOTE: If VEIDES_INSTALL_DEPENDENCIES option is set to ON, dependencies will automatically be installed by CMake after they're built.

Samples

Samples README

Features

  • SSL/TLS: By default, this library uses encrypted connection
  • Auto Reconnection: Client support automatic reconnect to Veides in case of a network issue