Basecamp - ESP32 library to simplify the basics of IoT projects Written by Merlin Schumacher ([email protected]) for c't magazin für computer technik Licensed under GPLv3. See LICENSE for details.
This library has few dependencies:
Exhaustive documentation will provided in the next few weeks. An example can be found inside the example folder.
#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
}