Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By scropion86
#30624
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
User avatar
By shoelessone
#32402 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?