INTERNET OF THINGS BOILERPLATE FOR ESP32
An Arduino compatible IOT boilerplate system for the ESP32 development board. A simple to use drop-in solution for bootstrapping IOT functionality on any ESP32 project.
- Add to your project with just 3 lines of code
- Super fast async web server
- Automatic soft AP for configuring WiFi
This is a very low abstraction boilerplate to easily get the ESPAsyncWebServer library running in your project. Because of this, the included documentation here will be light. Please see the excellent ESPAsyncWebServer documentation for more info and advanced usage.
Note: This is not a library and is not meant to be installed like a library. This is meant to be copied into your project directory. The files contained in the zIOTBP32
directory can be customized by advanced users.
Download this repo and put the zIOTBP32-master/zIOTBP32
folder into your project directory.
your-project/
--zIOTBP32/
--your_sketch.ino
#include <Arduino.h>
#include "zIOTBP32/zsetupBP.h"
void setup() {
setupBP();
}
void loop() {
loopBP();
}
A simple route method might look like this:
void r_example(AsyncWebServerRequest *request){
String message = "Hello World";
request->send(200, "text/plain", message);
}
It can be added to the application at any time by doing something like this:
server.on("/example", HTTP_GET, r_example);
void setupBP(const char *apName="ESP SETUP", const char *ssid=NULL, const char *pkey=NULL)
You can provide the setupBP()
function with 3 optional arguments to set the soft AP name as well as the default WiFi credentials.