Showing mDNS on wifi config page
This commit is contained in:
parent
cf3e683137
commit
3d3293138f
@ -136,6 +136,12 @@ void WifiConnection::startPortal() {
|
|||||||
myWifiManager->setConfigPortalTimeout(
|
myWifiManager->setConfigPortalTimeout(
|
||||||
myHardwareConfig.getWifiPortalTimeout());
|
myHardwareConfig.getWifiPortalTimeout());
|
||||||
|
|
||||||
|
String mdns("<p>Default mDNS name is: http://");
|
||||||
|
mdns += myConfig.getMDNS();
|
||||||
|
mdns += ".local<p>";
|
||||||
|
ESP_WMParameter deviceName(mdns.c_str());
|
||||||
|
myWifiManager->addParameter(&deviceName);
|
||||||
|
|
||||||
if (myWifiManager->startConfigPortal(WIFI_DEFAULT_SSID, WIFI_DEFAULT_PWD)) {
|
if (myWifiManager->startConfigPortal(WIFI_DEFAULT_SSID, WIFI_DEFAULT_PWD)) {
|
||||||
Log.notice(F("WIFI: Exited portal, connected to wifi. Rebooting..." CR));
|
Log.notice(F("WIFI: Exited portal, connected to wifi. Rebooting..." CR));
|
||||||
myConfig.setWifiSSID(myWifiManager->getSSID());
|
myConfig.setWifiSSID(myWifiManager->getSSID());
|
||||||
|
@ -18,6 +18,7 @@ v0.9.0
|
|||||||
* Updated esp32 target with littlefs support
|
* Updated esp32 target with littlefs support
|
||||||
* Updated esp32 target with BLE send support (it will simulate a tilt)
|
* Updated esp32 target with BLE send support (it will simulate a tilt)
|
||||||
* Mounted esp32 d1 mini mounted to a iSpindle PCB 4.0 (CherryPhilip) which worked fine.
|
* Mounted esp32 d1 mini mounted to a iSpindle PCB 4.0 (CherryPhilip) which worked fine.
|
||||||
|
* Default mDNS name is now shown on WIFI setup page.
|
||||||
* BUG: Corrected PIN for voltage read on ESP32
|
* BUG: Corrected PIN for voltage read on ESP32
|
||||||
* BUG: If using plato and not gravity formula was defined the value was set to null.
|
* BUG: If using plato and not gravity formula was defined the value was set to null.
|
||||||
* BUG: Temp format name was incorrect in iSpindle format causing receiver to incorrectly read temperature.
|
* BUG: Temp format name was incorrect in iSpindle format causing receiver to incorrectly read temperature.
|
||||||
|
Loading…
Reference in New Issue
Block a user