Skip to content
This repository has been archived by the owner on Jan 11, 2020. It is now read-only.
/ Basecamp Public archive

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

License

Notifications You must be signed in to change notification settings

ct-Open-Source/Basecamp

Repository files navigation

Basecamp

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.

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
}