Open source · MIT

AetheriumIoT
Arduino library.

Connect an ESP32 or ESP8266 to an Aetherium IoT dashboard with one API key. Send sensor values, receive switch and slider values, and update firmware over the air.

Install

Three ways to install.

Pick the one that matches your editor. The Library Manager also installs PubSubClient for you.

Arduino IDE · Library Manager

Open Tools › Manage Libraries, search AetheriumIoT and click Install. Works the same in the VS Code Arduino extension.

ZIP file

Download the ZIP above, then Sketch › Include Library › Add .ZIP Library. Also install PubSubClient by Nick O'Leary from the Library Manager.

PlatformIO · VS Code

Add this line to platformio.ini:

lib_deps = https://github.com/firozkhandeveloper-prog/AetheriumIOT.git#1.0.0
Quick start

Ten lines to a
live dashboard.

Get the device API key from your dashboard: Designer › Devices › Add device. The dashboard can also generate this sketch for you.

#include <AetheriumIoT.h>

AetheriumIoT iot;

void setup() {
  pinMode(26, OUTPUT);
  iot.on("relay", [](const IoTValue& v) { digitalWrite(26, v.toBool()); });
  iot.begin("WIFI_NAME", "WIFI_PASS", "DEVICE_API_KEY", "your-server.com");
}

unsigned long last = 0;
void loop() {
  iot.loop();
  if (millis() - last > 5000) {        // send every 5 seconds
    last = millis();
    iot.send("temp", 25.4);
  }
}
What it does

Built for real devices.

TYPESEvery keyword type

bool, int, long (64-bit), float, double and string. Long and double keep every digit.

CONTROLDashboard, rules & schedules

Your on("key") handler runs when a button, rule or schedule changes a value.

OTAFirmware over the air

Upload a .bin in the dashboard and push it to selected devices.

RECONNECTSurvives drop-outs

WiFi and MQTT reconnect on their own, and the latest values sync after a reboot.

CLIENTAny network

Use WiFi, or pass your own Ethernet or GSM Client.

INDUSTRIALModbus gateway example

Read a PLC, VFD or energy meter over RS-485 and publish the values.

Tutorials

Learn by building.

Step-by-step projects with video, wiring and code. New tutorials are added here as they are published.

Video coming soon
Tutorial 01 · Beginner · 20 min

Temperature dashboard and relay control with ESP32

Read a DHT11 sensor, show temperature and humidity on your dashboard, and switch a relay from your phone.

You need: ESP32 dev board, DHT11 sensor, 1-channel relay module, jumper wires.

  1. In the dashboard, add a device and three keywords: temp (float, sensor), hum (float, sensor) and relay (bool, both). Copy the device API key.
  2. In Arduino IDE install AetheriumIoT and DHT sensor library by Adafruit from the Library Manager.
  3. Wire DHT11 DATA to GPIO 4 and the relay IN pin to GPIO 26. Connect VCC and GND as marked on each module.
  4. Open File › Examples › AetheriumIoT › RelayAndSensor and fill in your WiFi name, password, API key and server address.
  5. Upload to the ESP32. Values appear on the dashboard every 5 seconds, and the relay follows the switch.
const char* WIFI_SSID = "YOUR_WIFI";
const char* WIFI_PASS = "YOUR_PASSWORD";
const char* API_KEY   = "PASTE_DEVICE_API_KEY";
const char* SERVER    = "your-server.com";
Questions

Good to know.

Need help with a project? WhatsApp us on +91 85277 41300.

Which boards are supported?

ESP32 (all common variants) and ESP8266. The examples are tested on ESP32 with Arduino core 2.0.

What do I put as the server address?

Create a free account on the Aetherium IoT dashboard. When you add a device, Get code fills in the server address and API key for you.

Is it free to use?

Yes. The library is open source under the MIT license, so you can use it in personal and commercial projects.

Which examples are included?

RelayAndSensor (DHT11 + relay with OTA), AllDataTypes (every keyword type) and ModbusGateway (ESP32 as an RS-485 Modbus RTU gateway). Open them from File › Examples › AetheriumIoT.

Where do I report a bug?

Open an issue on GitHub, or email [email protected].