Quickstart

Prerequisites

To install the C SDK, you will need the following dependencies:
- libcurl
- openssl
- Paho MQTT library
- Jansson JSON library

Heads Up!

The Paho MQTT Library contains a Makefile that only supports Linux systems. You can try to install it on other operating systems but there is a chance that it might not work. So, you may need to edit the Makefile for your operating system or install the C SDK on a Linux system

Installing libcurl and openssl

  • You can download and install libcurl library from https://curl.haxx.se/libcurl/. Depending on your operating system, you may download the compiled libraries or build from source
  • You can also download and install the openssl library from https://www.openssl.org

Installing the Paho MQTT Library

To install the Paho MQTT Library, execute the following commands:

git clone https://github.com/eclipse/paho.mqtt.c.git  
cd paho.mqtt.c/  
make  
sudo make install  

Install the Jansson JSON Library

You can follow the instructions given @ http://jansson.readthedocs.io/en/2.10/gettingstarted.html#compiling-and-installing-jansson to install the Jansson JSON Library

Install the C SDK

Execute the following commands to install the C SDK on your system:

git clone https://github.com/ClearBlade/ClearBlade-C-SDK.git
cd ClearBlade-C-SDK/
make
sudo make install