Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
out
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
██╗    ██╗ ██████╗ ██╗     ██╗  ██╗ ██████╗ ██████╗ ███╗   ██╗███╗   ██╗███████╗ ██████╗████████╗
██║    ██║██╔═══██╗██║     ██║ ██╔╝██╔════╝██╔═══██╗████╗  ██║████╗  ██║██╔════╝██╔════╝╚══██╔══╝
██║ █╗ ██║██║   ██║██║     █████╔╝ ██║     ██║   ██║██╔██╗ ██║██╔██╗ ██║█████╗  ██║        ██║   
██║███╗██║██║   ██║██║     ██╔═██╗ ██║     ██║   ██║██║╚██╗██║██║╚██╗██║██╔══╝  ██║        ██║   
╚███╔███╔╝╚██████╔╝███████╗██║  ██╗╚██████╗╚██████╔╝██║ ╚████║██║ ╚████║███████╗╚██████╗   ██║   
 ╚══╝╚══╝  ╚═════╝ ╚══════╝╚═╝  ╚═╝ ╚═════╝ ╚═════╝ ╚═╝  ╚═══╝╚═╝  ╚═══╝╚══════╝ ╚═════╝   ╚═╝   
                                                                                                 
                                                                          ██████╗██████╗ ██████╗ 
                                                                         ██╔════╝██╔══██╗██╔══██╗
                                                                   █████╗██║     ██████╔╝██████╔╝
                                                                   ╚════╝██║     ██╔═══╝ ██╔═══╝ 
                                                                         ╚██████╗██║     ██║     
                                                                          ╚═════╝╚═╝     ╚═╝     

WolkAbout C++11 Connector library for connecting devices to WolkAbout IoT Platform.

Supported protocol(s):

  • WolkAbout protocol

Installing from source

This repository must be cloned from the command line using:

git clone --recurse-submodules https://github.com/Wolkabout/WolkConnect-Cpp.git

Prerequisite

Following tools/libraries are required in order to build WolkAbout C++ connector

  • cmake - version 3.5 or later
  • autotools
  • autoconf
  • g++
  • m4
  • zlib1g-dev
  • libpoco-dev
  • libssl-dev

Former can be installed on Debian based system from terminal by invoking

sudo apt-get install autotools-dev g++ autoconf m4 zlib1g-dev cmake libpoco-dev libssl-dev

Afterwards dependencies are built, and Makefile build system is generated by invoking ./configure.sh

Generated build system is located inside out directory

WolkAbout C++ Connector library, and example are built from out directory by invoking make in terminal

Example Usage

Create a device on WolkAbout IoT platform using the Device Type 'Simple example'. This type fits simple example and demonstrates the sending of a temperature sensor reading.

Establishing connection with WolkAbout IoT platform:

wolkabout::Device device("DEVICE_KEY", "DEVICE_PASSWORD");

std::unique_ptr<wolkabout::Wolk> wolk = wolkabout::Wolk::newBuilder(device).build();

wolk->connect();

Publishing sensor readings:

wolk->addSensorReading("TEMPERATURE_REF", 23.4);

Data publish strategy:

Sensor readings are pushed to WolkAbout IoT platform on demand by calling

wolk->publish();

Disconnecting from the platform:

wolk->disconnect();

Additional functionality

WolkConnect-C++ library has integrated additional features which can perform full WolkAbout IoT platform potential. Read more about full feature set example HERE.