Git Product home page Git Product logo

ziotbp32's Introduction

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.

ziotbp32's People

Contributors

matdombrock avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.