Skip to content

This is the basic firmware code for Variabls Library. It can be used as a basic library to interact between device and platform

License

Notifications You must be signed in to change notification settings

variabls/variabls-firmware-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

variabls-library

Variabls Firmware Library to Connect Device to variabls Platform.

Our works is an open source. Feel free to add, modify, and use it.

For full Documentation, please visit here.

Quick Usage

To use this library, simply download the library and paste it into your lib project folder. This code below is the simple example of main.cpp code to use the Variabls Library:

#include <VariablsLib.h>
#include <VariablsTask.h>

VariablsLib variabls;
VariablsTask task;

void demoTask()
{
    float sendRandom = random(100000, 500000) / 100.00;

    variablsMQTT.publish("demo/test", 1, sendRandom);
}

void setup()
{
    variabls.begin();
    task.setTask("testRandom", 15000L, demoTask, 0);
}

void loop()
{
    variabls.run();
    task.run();
}

It will push random number every 15000 ms to topic 'demo/test' forever.

See the more code example

For full Documentation, please visit here.

Acknowledgement

Many thanks to those who build an amazing open-source code and still maintain it up till today. The inspiration came from this amazing Author:

  1. Autoconnect by Hieromon
  2. ArduinoMQTT by 256dpi
  3. ArduinoJSON by bblanchon
  4. NTPClient by Arduino

Contributor

Hamid Rasyid Muhammad Sidargo

About

This is the basic firmware code for Variabls Library. It can be used as a basic library to interact between device and platform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published