/Basecamp

An Arduino library to ease the use of the ESP32 in IoT projects

Primary LanguageC++GNU General Public License v3.0GPL-3.0

Basecamp

Basecamp - ESP32 library to simplify the basics of IoT projects Written by Merlin Schumacher (mls@ct.de) for c't magazin für computer technik Licensed under GPLv3. See LICENSE for details.

Dependencies

This library has few dependencies:

ESPAsyncWebServer

ArduinoJSON

Async MQTT Client

AsyncTCP

Documentation

Exhaustive documentation will provided in the next few weeks. An example can be found inside the example folder.

Basic example

#include <Basecamp.hpp>
Basecamp iot;

void setup() {
	iot.begin();
    //The mqtt object is an instance of Async MQTT Client. See it's documentation for details.
    iot.mqtt.subscribe("test/lol",2);
    
    //Use the web object to add elements to the interface
    iot.web.addInterfaceElement("color", "input", "", "#configform", "LampColor");
    iot.web.setInterfaceElementAttribute("color", "type", "text");
    
}

void loop() {
	//your code
}