Coder Social home page Coder Social logo

Comments (3)

khoih-prog avatar khoih-prog commented on June 9, 2024 2

Some more thoughts about the issue

The real reason behind that issue is that the ESP_WiFiManager has to run its own WebServer on port 80 to handle the Config Portal.
If you create another WebServer instance on port 80, you must be careful

  1. Either to delete the previous ESP_WiFiManager's WebServer instance, when Config Portal done, before creating another one (your instance) to avoid conflict and/or memory issue because the ESP8266 WebServer library possibly permits only one instance on one port 80.

Ken Taylor's version provides a workaround by issuing a reset() to restart the board and clear the created instance after exiting the Config Portal. If you'd like, you can use this workaround (Per Ken Taylor: This is a bit crude. For some unknown reason webserver can only be started once per boot up, so resetting the device allows to go back into config mode again when it reboots.)

  1. The example is just an example only for that narrow / intended use case. If you modify the example, you have to consider all the unintended possibilities.

from esp_wifimanager.

Wakewatcher avatar Wakewatcher commented on June 9, 2024 1

Yeah I ended up just using the double reset case slightly modified so I could use double flash which was even a bit more crude. Anyway thanks for your stuff.

from esp_wifimanager.

khoih-prog avatar khoih-prog commented on June 9, 2024

Hi @Wakewatcher

Thanks for using the library and this bug report.
Could you post your code or minimized version of it along with the instructions how to duplicate the issue.

from esp_wifimanager.

Related Issues (20)

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.