Syncano's Arduino Library
C++ Arduino C CMake
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Arduino Library for Syncano

Arduino library for Syncano provides support for Arduino Yún.

This library let you use Syncano as Cloud for your connected devices.

In case of any questions or feedback, please do not hesitate to contact us on: #iot channel at Syncano-community Slack

Getting started

This library is inteded to be used with a Syncano account. If you don't already have one - you can sign up here.

Syncano Template

In order to use Syncano Arduino library, you have to create the template in Syncano. Templates can be found in <> Snippets section in your dashboard. Name your new template arduino and set it content type to application/json. Then just copy the code below into it and save.

{%- set fields_to_skip = [
{%- if action == 'create' or action =='partial_update' -%}
    {%- if 'id' in response -%}
    {%- elif 'status' or 'type' in response -%}
    {%- else -%}
    {%- endif -%}
{%- elif payload -%}
    {%- for key, value in payload.iteritems() if key not in fields_to_skip -%}
        {%- if value is number -%}
        {%- else -%}
        {%- endif -%}
        {%- if not loop.last -%}
        {%- endif -%}
    {%- endfor -%}
{%- endif -%}


To use this library copy folder SyncanoArduinoLibrary from GitHub to your Custom Arduino Library Folder.

Include library

In your sketch you have to include library.

#include <Syncano.h>

Define consts

Next you have to define your Syncano Api Key


Optionally you can define other const like Syncano Instance Name, Object Id or Webhook Name.

Setup your sketch

Before setup function you have to define pointer to Syncano object:

SyncanoClient* syncano;

In setup function you can prepare syncano object to connect to

syncano = getSyncanoClient();

Main loop

For example, you can use library to parse Syncano classes. First you have to create Class in Syncano ( or use existing ), then you can use details() method to fetch Class schema to local object. After this step you can create object based on this class or simply write class fields to Serial output by using printDetails() method.

SyncanoClass* classHolder = new SyncanoClass(CLASS_NAME);

Serial.println("Class details example:");


If you want to generate local version of documentation, simply use doxygen with additional graphviz tool installed.

Doxygen installation instruction

Generating documentation on Ubuntu:

sudo apt-get install doxygen graphviz
doxygen ./Doxyfile

Documentation can be found in new directory called auto_docs

You can also visit our documentation website for actual documentation version.


We have prepared set of examples ready to use with Syncano. You can find them on our GitHub site, Playground or directly in your Adruino IDE in examples section.