Chat freely about anything...

User avatar
By kolban
#23008 Well ... I don't have an answer, but I do have a possible clue for you. Ive been doing some experiments on the software watchdog timer. I wanted to find out just how long I could delay before it fired. What I did was try and delay for 10 seconds ... watchdog fired ... so tried 5 seconds ... and it fired ... so tried 2 seconds ... and it did not fire ... and by a divide by 2 process I eventually measured a constant and accurate delay time till it fired ... and the answer ...

3.2 seconds (3200 msecs).

So ... the fact that you are ticking for 32 seconds (which I realize is 10 x 3.2 seconds) ... it might just be co-incidence ... but its the kind of pattern that just might mean something. In your tests, is it always 32 seconds?
User avatar
By burkmurray
#23014
HelloServer code contains now:
Serial.setDebugOutput(true);
and
WiFi.mode(WIFI_STA);
also I added a timer:


Well, that was useless advice - sorry.

Your code runs fine for me. I know you've double-checked your power and wiring, but it's hard to see how the problem could be anywhere else.
User avatar
By WStan
#23016 I've changed loop in HelloServer code to:
Code: Select allvoid loop(void){
  unsigned int ms=millis();
  float sec=float (ms)/1000;
  server.handleClient();
  Serial.print("work time [s]= ");
  Serial.println(sec);
  digitalWrite(led, 1);   
  delay(50);               
  digitalWrite(led, 0);   
  delay(50);
}


And below are results of experiments with two ESP8266-01 modules:

Working time before WDT reset:

ESP8266-01 First Module:

Work time 31,55s 4 times
Work time 31,54s 9 times
Work time 31,44s 8 times

ESP8266-01 Second Module:

Work time 31,65s 5 times
Work time 31,55s 15 times
Work time 31,45s 4 times
Work time 31,35s 2 times
Work time 31,25s 1 times
Work time 31,15s 1 times

It seems that results are similar to kolban observation
User avatar
By WStan
#23017
burkmurray wrote:
HelloServer code contains now:
Serial.setDebugOutput(true);
and
WiFi.mode(WIFI_STA);
also I added a timer:


Well, that was useless advice - sorry.

Your code runs fine for me. I know you've double-checked your power and wiring, but it's hard to see how the problem could be anywhere else.


No problem :) Thank you for your willingness to help.
I also wonder how this problem would look like in another home network.
I have two independent sets with ESP8266 and on both is the same phenomenon.
It seems that my LinkSys WiFi router does not like :) ESP8266-01 modules.