I have the autoConnect() working. Then, I am running the config portal for configuration of custom parameters. However, I cannot figure how to get the local IP hyperlink so that I can click to get to the local IP to run the configuration in a browser. Additionally, I would like to see the status of the MQTT connection, which is configured using custom parameters. Lastly, once the MQTT configuration is done, would like to have a way to update the parameters. So, how to invoke the web server? If it must be run continuously, then I should protect with HTTP auth.
Hardware
WiFimanager Branch/Release: 2.0.17
Esp8266/Esp32: ESP8266
Hardware: esp01
Core Version: 3.1.2
Description
Here is what I am trying to do:
Use WiFiManager to start a WiFi AP and configure the SSID/password for WiFi router
MQTT parameters are in a page of their own with a save button. However, it is possible that the MQTT parameters are configured only later, and not at the same time when the SSID/password is configured.
To allow the custom configuration, the config portal is started manually for MQTT configuration.
The above is working - the configuration pages come up and MQTT config can be saved. At the bottom of the page, it says "connected to AP with IP 192.168.1.25
Limitations
The MQTT parameters may need to be changed if there is a mistake or a typo or server info changes. In such case, there is no clear way to restart the configuration portal, if the device is installed in a hard to reach place and no button can be pressed.
The MQTT parameters are on the "captive portal" (as in the page that comes up after connecting to SoftAP of the ESP device. Ideally, I would like to load the "web portal" at 192.168.1.25 and configure MQTT parameters there. For that, I think I can use "wm.startWebPortal();" after the autoConnect call. But I cannot easily know the IP address "192.168.1.25", without relying on mDNS.
So, here is what I request help with:
How to see the local IP address in captive portal pages, and ideally, add a hyperlink that can be clicked to get to it.
How to see that MQTT has connected. It would be good to add a "connected" type status in the page itself.
How to start the web server without pressing any button for any subsequent custom parameter changes (and not the WiFi credentials)
How to add HTTP auth on the web portal pages. I guess this can be done by changing false to true in "bool testauth = false;" line. Correct?
Basic Infos
I have the autoConnect() working. Then, I am running the config portal for configuration of custom parameters. However, I cannot figure how to get the local IP hyperlink so that I can click to get to the local IP to run the configuration in a browser. Additionally, I would like to see the status of the MQTT connection, which is configured using custom parameters. Lastly, once the MQTT configuration is done, would like to have a way to update the parameters. So, how to invoke the web server? If it must be run continuously, then I should protect with HTTP auth.
Hardware
WiFimanager Branch/Release: 2.0.17
Esp8266/Esp32: ESP8266
Hardware: esp01
Core Version: 3.1.2
Description
Here is what I am trying to do:
The above is working - the configuration pages come up and MQTT config can be saved. At the bottom of the page, it says "connected to AP with IP 192.168.1.25
Limitations
So, here is what I request help with:
Please guide. Thank you!
Settings in IDE
Module: ESP8266 Generic Module
Additional libraries: WiFiManager, LittleFS, PubSubClient, NTPClient
Sketch
Debug Messages