Skip to content

An Arduino compatible IOT boilerplate system for the ESP32 development board. Just add 3 lines of code and get a soft AP for setup and a full featured web server.

Notifications You must be signed in to change notification settings

matdombrock/zIOTBP32

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zIOTBP32

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.

Depends On

Features

  • Add to your project with just 3 lines of code
  • Super fast async web server
  • Automatic soft AP for configuring WiFi

About zIOTBP32

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.

Setup

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 and install:

Download this repo and put the zIOTBP32-master/zIOTBP32 folder into your project directory.

your-project/
--zIOTBP32/
--your_sketch.ino

Add the boilerplate to your sketch:

#include <Arduino.h>
#include "zIOTBP32/zsetupBP.h"

void setup() {
  setupBP();
}

void loop() {
  loopBP();
}

Routes

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);

Advanced Setup

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.

About

An Arduino compatible IOT boilerplate system for the ESP32 development board. Just add 3 lines of code and get a soft AP for setup and a full featured web server.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published