tzapu / WiFiManager

ESP8266 WiFi Connection manager with web captive portal
http://tzapu.com/esp8266-wifi-connection-manager-library-arduino-ide/
MIT License
6.6k stars 1.97k forks source link

🚧 Development Release #500

Open tablatronix opened 6 years ago

tablatronix commented 6 years ago

Development is now merged into master https://github.com/tzapu/WiFiManager/

https://github.com/tzapu/WiFiManager/pull/499

README NOT FULLY UPDATED

TLDR

tablatronix commented 6 years ago

Development Overview

Added Public Methods

setConfigPortalBlocking setShowStaticFields setCaptivePortalEnable setRestorePersistent setCaptivePortalClientCheck setWebPortalClientCheck startWebPortal stopWebPortal process disconnect erase debugSoftAPConfig debugPlatformInfo setScanDispPerc setHostname setMenu(menu_page_t[]) setWiFiAutoReconnect setSTAStaticIPConfig(..,dns) setShowDnsFields getLastConxResult getWLStatusString getModeString getWiFiIsSaved setShowInfoErase setEnableConfigPortal setCountry setClass htmleEtities getWiFiPass getWiFiSSID setWiFiAPChannel setWiFiAPHidden setParamsPage setCleanConnect setHttpPort getConfigPortalActive getWebPortalActive

WiFiManagerParameter

WiFiManagerParameter(id,label) WiFiManagerParameter.setValue(value,length) getParameters getParametersCount

Constructors

WiFiManager(Stream& consolePort)

define/build flags

❗️ Defines cannot be set in user sketches, can be used in build_flags #include <rom/rtc.h> // esp32 info page will show last reset reasons if this file is included WM_MDNS // use MDNS WM_FIXERASECONFIG // use erase flash fix, esp8266 2.4.0 WM_ERASE_NVS // esp32 erase(true) will erase NVS WM_DEBUG_LEVEL // set debug level 0-4 WM_DEBUG_PORT // set debug port eg. Serial1

callbacks

setAPCallback // after ap has started setWebServerCallback // after webserver is setup setConfigResetCallback // reset settings setSaveParamsCallback // after save params from params menu or wifi config setPreSaveConfigCallback // before saving wifi creds

Changes

Testato commented 6 years ago

Very good, for the esp32 merge i think it is fundamental and, at least for me, it work very well. Merge it in the lib will help to have new test/opinion.

Testato commented 6 years ago

On this change i do not agree, imho have the percentage is better than a simple icons whit only 4 graphic step, and on mobile lcd you cannot click for see the percentage number. It is a very important signal, example for decide the post orientation of the Esp on a critical position far away from the wifi-router, sometimes you have very little wifi signsl, and recover 5 or 10% will make the difference.

You should add a public function that the user can use on the .ino sketch for decide himself witch type of data he need ?

I repeat, imho it is a very important info that the user should be decide whitout change the lib code.

tablatronix commented 6 years ago
tablatronix commented 6 years ago

left define in to reenable, if anyone needs something like that or similar

tablatronix commented 6 years ago

Refactor of examples currently in progress ! They might be messy for a bit

dvukovic commented 5 years ago

Has anyone tried WiFiManager with an ESP8285 ?

tablatronix commented 5 years ago

I have one I have not tested yet

dvukovic commented 5 years ago

To give a little background. I am using the Arduino1.8.5 IDE on Win7-64 bit. The code has been compiled for an NodeMCU Lolin v3 and works properly. I have a ESP8285 m3 board that I have been working with and have interfaces an I2C OLED display and an I2C RTC chip. I then compile the same demo programs as the NodeMCU, but the 8285 does not what too connect to any of my devices, ( DEL laptop, iPhone or Samsung tablet) as the NodeMCU has done. Here is a screen shot of the IDE Tools configuration. esp8285 m3 Please let me know if you see anything I missed. Thank You for your time.

tablatronix commented 5 years ago

What does serial debug say?

dvukovic commented 5 years ago

After loading the program, the serial monitor shows: autoconnect My iPhone and tablet shows the ESP8822174 as an access point, but neither are able to connect. The above serial monitor does not change when attempting a connection.

dvukovic commented 5 years ago

autoconnect_debug

tablatronix commented 5 years ago

maybe turn on esp debugging, so you are not able to join the ap at all? what about the esp8266 softap example

please create a new issue for this also

tablatronix commented 4 years ago

Locked this issue, this is for documentation only

tablatronix commented 4 years ago

Known Issues/Outstanding Design

tablatronix commented 3 years ago

Release v2.0.3-apha Development Is available in arduino library manager https://github.com/tzapu/WiFiManager/releases/tag/2.0.3-alpha

tablatronix commented 3 years ago

Development branch is now master

tablatronix commented 3 years ago

1199

tablatronix commented 3 years ago

Created https://github.com/tzapu/WiFiManager/wiki/Methods as basic outline for docs