Code Monkey home page Code Monkey logo

Comments (4)

tzapu avatar tzapu commented on May 19, 2024

Hi,
You could simply achieve that by using WifiMulti as in the setup part of the example, and having WiFiManager after it, if it's not connected. You would then have the preset multiple AP's and fallback if that didn't work.
Since it's and already made and distributed with the core library, it wouldn t make much sense to duplicate it's functionality.
Cheers

/edit: actually it seems the library is async so what i wrote above won't work. I ll give it some thought.

from wifimanager.

nibelungen avatar nibelungen commented on May 19, 2024

Thanks - really good support and feedback from you so far!

To duplicate the code was not my intention, but to replace it in your examples and use it as default way to connect as it does not care if there is one or multiple predefined connections.

from wifimanager.

tzapu avatar tzapu commented on May 19, 2024

Unfortunately there are some pretty big differences on how the two methods work
The default way of connecting is included by default in all sketches, WiFiMulti would need an additional library to be included. WiFiMulti is actually using the default wifi connect in the background anyway.
The normal way of connecting tries to connect and if it can't it releases control back to you (so i can switch to AP mode and start a webserver, etc), WIFiMulti is made to scan continuously for one of the known networks until it manages to connect.

from wifimanager.

tzapu avatar tzapu commented on May 19, 2024

i will close this for now, will ponder at it more in the future

from 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.