Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By Mike Bedford
#23993
Mike Bedford wrote:
Mike Bedford wrote:Just downloaded and compiled to my ESP8266. So far, agree with everybody else, this is very nice! Thank you so much! Just a comment and a question:
1. I was having a hard time connecting my phone to the AP. Seemed to get stuck on "obtaining IP address" alot. Took several attempts to get it to connect. One point it also stated that my password was incorrect but it wasn't. Just tried again and it would connect. Any thoughts on these items?
2. Question is I noticed the admin timeout. At first I thought (given the issues connecting in number 1 above) that it was dropping my connection too until I saw this setting and did confirm the timeout was happening in the serial monitor log. I am set to the default of 180. The question is, is there any reason there is a timeout? Would there be any harm in disabling the timeout and allowing the web config at any time? If I can do this, do I just set this to 0 to disable it? I know the ESP8266 can handle AP and client at the same time and this is what I desire.

Thanks!

Mike


Hello everybody, don't know if I saw a response to the above and now it is buried so thought I would re-post. I really need AP and client at same time. I want client to send data to website but have the user be able to connect to AP at any time if they need to configure OR see the data from the webpage live. Can I just disable the timeout and if so, how?

Also, any comments on the connection issues?

Thanks!


Third time is a charm maybe???
User avatar
By ridge
#23994 @Mike,

1) I think the PROGMEM keyword is broken in the Arduino IDE for the ESP8266 at the moment.
This is somewhat compounded in the excellent WebConfig example, because if you remove all the PROGMEM references, the heap memory is filled with the HTML page code and the program flakes out from lack of memory.
Pick your poison so to speak.
Your connection problems are probably related to this, especially taking into account all of the reports of WDT failures.

My WebConfig derived Irrigation_1 has been solid performer for at least 12 hours now. This confirms my thesis so far. The superior web coding skills of proteus74 are still intact in the Irrigation_1 example.

2) Comment out this section of your code to keep the soft access point active:
Code: Select all   if (AdminEnabled)
   {
      if (AdminTimeOutCounter > AdminTimeOut)
      {
          AdminEnabled = false;
          Serial.println("Admin Mode disabled!");
          WiFi.mode(WIFI_STA);
      }
   }


I look forward to the results of your testing if both access methods can be used at the same time.
User avatar
By patjazz
#24028 same problem here : https://github.com/esp8266/Arduino/issues/596 (last build)

i remove ALL PROGMEM except the one for : const char PAGE_NetworkConfiguration[] PROGMEM/**/ = R"=====(".... (the big one !) and i got the necessary heap space... and all is running OK...

SO, the problem is perhaps multiple PROGMEM ????

regards