Open tablatronix opened 6 years ago
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(id,label)
WiFiManagerParameter.setValue(value,length)
getParameters
getParametersCount
WiFiManager(Stream& consolePort)
❗️ 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
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
strings_en.h
strings_en.h
setRestorePersistent
)storeSTAmode
) (BUGGY)portalTimeoutResult
,portalAbortResult
)WIFI_MANAGER_MAX_PARAMS(5)
when exceeded, user no longer needs to specify this at all.#DEFINE FIXERASECONFIG
to help deal with https://github.com/esp8266/Arduino/pull/3635setShow_X_fields(false)
if you set _disableIpFields=true
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.
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.
<rom/rtc.h>
to get esp32 info to show reset reasonsleft define in to reenable, if anyone needs something like that or similar
Refactor of examples currently in progress ! They might be messy for a bit
Has anyone tried WiFiManager with an ESP8285 ?
I have one I have not tested yet
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. Please let me know if you see anything I missed. Thank You for your time.
What does serial debug say?
After loading the program, the serial monitor shows: 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.
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
Locked this issue, this is for documentation only
[ ] Since autoconnect and startcp can be non blocking now, return results may be inconsistent with old code, ensure this is cleaned up and ocncise
[ ] You can now skip wifi and save other params, wifi will be ignored, also this will alter return results as true was for connected status previously
[x] save callbacks are not called if not changing wifi, unless shouldbreakafterconfig is set, this needs to be cleaned up in to a legacy handling and new handling consitancy
[ ] save wifi and save param can be split now, wifi still retains ip inputs, setup
custom params, there is no user selection here, improve where user wants params, fix up callbacks to make it clear where user is getting data back from. savewifi, saveparam, etc
[ ] WM is NO longer persistent unless you save, atm I am reducing confusion by forcing STA mode on because that is how legacy worked, by design or not, it is what users are used to. Clarify how users want this to function, users now are responsible for user code and modes, wm can restore user modes back when starting and stopping configportal without touching their flash confgs. So if wifi was off, or ap, it will go back and they will wonder why their wifi is not on or why there is an ap when they reboot ???
[ ] Documentation is non existent, I might work with doxygen to get some basic generated from my doc blocks, all public functions are documented fairly well. Source is Docs for now.
[ ] DEV/ondemand example is used as my poor mans unit test, it has almost all functionality added to it and maintained.
[ ] spiffs is replaced by littlefs, update examples as such
[ ] users still want customization, almost anything can be customized in strings.h, but maybe we can add a header and footer callout for easy code only dynamic changes.
[ ] reduce code bloat by wrapping features in a #ifdef , make features optional, advanced info page has alot of info folks might not need, advanced testing page, gpio toggle?ota form? api ?
Release v2.0.3-apha Development Is available in arduino library manager https://github.com/tzapu/WiFiManager/releases/tag/2.0.3-alpha
Created https://github.com/tzapu/WiFiManager/wiki/Methods as basic outline for docs
Development is now merged into master https://github.com/tzapu/WiFiManager/
https://github.com/tzapu/WiFiManager/pull/499
README NOT FULLY UPDATED
TLDR
DEV/ondemand
example has pretty much everythingWM_DEBUG_LEVEL
or _debugLevel in sourcestring_en.h
and progmem