Giter VIP home page Giter VIP logo

esp8266-bootconfig's Introduction

esp8266-bootconfig

A project that allows Wi-Fi configuration via HTTP on devices based on ESP8266 nodeMCU.

Load this code into ESP8266 (flashed with NodeMCU) and you will get:

  1. If device is rebooted >= 3 times in a row with <5 sec intervals between reboots, it goes into bootconf mode. That means that device:
    • creates an open Wi-Fi Access point "ESP8266-Config"
    • starts HTTP server at 192.168.4.1:80 (default NodeMCU DHCP IP)
    • provides an index.html that shows 2 fields: AP name and AP password. Data is sent from browser to another page on server that saves parameters into wificonfig.txt on ESP module.
    • To access the configuration page, connect any device (smartphone, tablet, notebook) to Wi-Fi AccessPoint ESP8266-Config and go to http://192.168.4.1 from browser.
  2. If boot is normal (less than 3 reboots within 5 secs intervals), program reads wificonfig.txt and connects to specified network. Then it executes main.lua. At this moment main.lua starts led.lua that does PWM-blink a led on pin 3. Feel free to remove led.lua and modify main.lua

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.