GithubHelp home page GithubHelp logo

judge2005 / improvwifi Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 7 KB

An object-oriented implementation of the esp web tools improv serial protocol for provisioning ESP32 devices

License: MIT License

C++ 100.00%
async esp-web-tools esp32 improv ood oop wifi

improvwifi's Introduction

Overview

This library simplies adding the improv serial protocol to your ESP32 projects. When used with esp web tools it fullfills three purposes:

  1. Returns the manifest data when asked
  2. Sets up the wifi connection
  3. Returns the application url

The design is completely non-blocking, even when 'waiting' for a wifi connection, and can be used with any WiFi stack, including WiFi managers.

For those that don't know, esp web tools allows an ESP32 device to be flashed using a web browser that supports serial port access (basically Chrome, Edge and Opera). Improv allows esp web tools to query what firmware is already flashed and to set up a WiFi connection on the device.

How to Use

  1. Declare an instance of the class, constructed with the manifest information
  2. Define a callback to connect to WiFi
  3. Optionally define a callback to display info messages
  4. Optionally define a callback to display debug messages
  5. Call the loop() method every so often. This method never blocks.

Obviously writing messages to the serial port will interefere with the improv messaging, but there are sometimes other ways to get that information in front of a person.

improvwifi's People

Contributors

judge2005 avatar

Stargazers

 avatar

Watchers

 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.