Arduino IDE
Arduino is widely recognized as the best framework for learning, prototyping, and even product development. Its simplicity and the robust community of developers continuously enhancing its capabilities make it an excellent choice.
At Thinger.io, we have developed a Software Client to easily connect Arduino-based devices. This client is compatible with a wide variety of hardware and is available for Windows, macOS, and Linux distributions. It is possible to download it for free from the official Arduino website.
The following sections will provide guidance on the installation and preparation of the Arduino IDE to work with Thinger.io client libraries.

Installing the Arduino IDE
To use Thinger.io with Arduino, a modern version of the Arduino IDE that supports the Library Manager and other advanced features is needed. Version 1.6.3 or later should be installed. If a compatible version is already installed, this step can be skipped.
Download the Arduino IDE: Visit the official Arduino download page to download the latest version suitable for any operating system (Windows, macOS, or Linux).
Follow the instructions on the website to complete the installation process.
Install Thinger.io from the Library Manager
Thinger.io Client libraries contain the software needed to connect Arduino-compatible devices with the Thinger.io platform. Using these libraries is the preferred method for connecting devices, as it allows leveraging all of Thinger.io's features.
To install the Thinger.io library from the Arduino Library Manager:
Open the Library Manager:
In the Arduino IDE, go to Sketch > Include Library > Manage Libraries.
Search for Thinger.io:
Use the search bar in the Library Manager to find "Thinger.io".
Install the Library:
Select the Thinger.io Client library from the search results and click Install.

Install Thinger.io from ZIP
If there is a preference to manage the libraries manually or if the Library Manager is not working, the Thinger.io library can be installed by following these steps:
Download the ZIP Library:
Obtain the .zip library file from the official Thinger.io project GitHub repository.
Click on CODE and download the ZIP named
Arduino-Library-master.zip
.
Rename the ZIP File:
Rename
Arduino-Library-master.zip
to something more relevant, such asthinger.zip
.
Import the ZIP Library in Arduino IDE:
Open the Arduino IDE.
Go to Sketch > Include Library > Add .ZIP Library....
Navigate to and select the
thinger.zip
file.The Arduino IDE will uncompress and copy the zip library into the Arduino libraries folder, typically located under the Documents folder.
Starting a Project
Once the Thinger.io Library has been installed, start a new project using one of the default examples provided. There are examples tailored for different boards, so choose the one that matches the device.
Open Example Project:
In the Arduino IDE, go to File > Examples > thinger.io.
Select an example that corresponds to the device.
This will load the example code, which can then be modified to suit specific needs.

A basic example for an ESP32 device:
#define THINGER_SERIAL_DEBUG
#include <ThingerESP32.h>
#include "arduino_secrets.h"
ThingerESP32 thing(USERNAME, DEVICE_ID, DEVICE_CREDENTIAL);
void setup() {
// open serial for debugging
Serial.begin(115200);
pinMode(16, OUTPUT);
thing.add_wifi(SSID, SSID_PASSWORD);
// digital pin control example (i.e. turning on/off a light, a relay, configuring a parameter, etc)
thing["GPIO_16"] << digitalPin(16);
// resource output example (i.e. reading a sensor value)
thing["millis"] >> outputValue(millis());
// more details at http://docs.thinger.io/arduino/
}
void loop() {
thing.handle();
}
Last updated
Was this helpful?