Giter VIP home page Giter VIP logo

softwareag / cumulocity-sdk-c Goto Github PK

View Code? Open in Web Editor NEW
2.0 13.0 1.0 3.43 MB

Cumulocity C++ Library is an asynchronous, event-driven networking library to ease your development for connecting to the Cumulocity cloud. The library uses Cumulocity's self invented SmartREST protocol for M2M communication which targets any device that are capable of running embedded Linux.

License: MIT License

Makefile 0.03% HTML 12.13% C++ 85.17% C 0.83% Python 1.68% Shell 0.15%
cumulocity-iot iot-analytics cumulocity-client client cplusplus

cumulocity-sdk-c's Introduction

Cumulocity C++ Library

Cumulocity C++ Library is an asynchronous, event-driven networking library to ease your development for connecting to the Cumulocity cloud. The library uses Cumulocity's self invented SmartREST protocol for M2M communication which targets any device that are capable of running embedded Linux.

Prerequisites

  • C++ 11
  • Linux >= 2.6.32
  • libcurl >= 7.57.0
  • Lua >= 5.1 (optional, for Lua support)

How to build the library?

  • Download the source code:
#!bash

git clone [email protected]:m2m/cumulocity-sdk-c.git
  • Pull in all sub-module dependencies.
#!bash
git submodule init
git submodule update
  • Define your init.mk with device specific CPPFLAGS, CXXFLAGS, LDFLAGS, LDLIBS (see common.mk for reference), and CXX if cross compiling.
  • Copy the template Makefile:
#!bash

cp Makefile.template Makefile
  • Customize the Makefile to your needs.
  • Build the library in debug mode:
#!bash

make
  • Starts developing your Cumulocity agent and link it to the library with -lsera.
  • Build the library in release mode for production release:
#!bash

make release

FAQ

  • I encountered an error when building the library.
    Try removing all intermediate build files first and start a new clean build:
#!bash

make clean
  • How can I enable Lua support when building the library?
    Lua support is disabled by default, to enable Lua support, add:
#!bash

SR_PLUGIN_LUA:=1

to your init.mk.

  • How can I contact Cumulocity in case I have questions?
    You can reach us by email at Software AG Cumulocity IoT [email protected]

cumulocity-sdk-c's People

Contributors

c8y-kh4mell avatar cschnei avatar rina23q avatar tiensbakung avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.