-->
Page 11 of 19

Re: Storing and reading ssid/pass from eeprom, AP to config

PostPosted: Mon Oct 05, 2015 7:31 am
by scropion86
i'am getting the same error as below

Code: Select all.

Could not connect to WiFi
Started Soft Access Point

WiFi connected
0.0.0.0
192.168.4.1
Error setting up MDNS responder!

Re: Storing and reading ssid/pass from eeprom, AP to config

PostPosted: Tue Oct 06, 2015 12:11 am
by scropion86
szpapas wrote:Change a little bit on WifiManager.cpp :)

void WiFiManager::startWebConfig() {
DEBUG_PRINT("");
DEBUG_PRINT("WiFi connected");
DEBUG_PRINT(WiFi.localIP());
DEBUG_PRINT(WiFi.softAPIP());


/* <---- comment this block out
if (!mdns.begin(_apName, WiFi.localIP())) {
DEBUG_PRINT("Error setting up MDNS responder!");
while (1) {
delay(1000);
}
}
DEBUG_PRINT("mDNS responder started");
*/

// Start the server
server.begin();


===
int WiFiManager::serverLoop()
{
// Check for any mDNS queries and send responses
// mdns.update(); <--- comment this out

// Check if a client has connected
WiFiClient client = server.available();


Then upload again should be OK.


i done it , error not showing any more , and after connected to the AP the configuration page still not showing.
so still not working

Re: Storing and reading ssid/pass from eeprom, AP to config

PostPosted: Tue Oct 27, 2015 3:01 am
by alextu
hi guys,
there s a new version of WiFiManager that does away with MDNS and has quite a few new features like captive portal.

make sure you are running the staging version of the arduino ide esp8266 package for it though
good luck

Re: Storing and reading ssid/pass from eeprom, AP to config

PostPosted: Tue Oct 27, 2015 3:42 pm
by shoelessone
I just typed a bunch of garbage, but I'm giong to start over because i've answer some of my questions, and I realize you're the author of this so I'm going to just ask these questions here :)

1. I looked through .cpp really quickly, and I'm getting two compile errors `class ESP8266WebServer' has no member named 'hostHeader'` and `'class WiFiClient' has no member named 'localIP'` - am I missing something?

2. Thoughts on allow the actual html of the page to be configurable outside of the library? Obviously it's easy enough to edit your cpp file, but it might be nice to allow somebody to pass in the html they want displayed on the "configuration" page?