-->
Page 1 of 2

Sketch stalls when browser minimized W10

PostPosted: Thu Mar 10, 2016 9:39 am
by xtal
I recently upgraded to W10 and have noticed that there is an increased tendancy for
my sketch to stopworking when the browser is minimized....
I'm using the following code in Void LOOP: which I borrowed from somewhere?
I would like to check if I am stalled then maybe ESPreset();

How can I check if I am stalled ???????? Any suggestions welcome.....

Code: Select all/*====================================================================================*/
void loop() {

/*===================================================================================*/
WIFIC:                                      //
  WiFiClient client = server.available();   // Check if a client has connected
  if (!client)   { return; }                // Wait until the client sends some data   

  while (!client.available())               // I think stays here until data ????


     { delay(1); }                          // Read the first the request     
  String PayLD = client.readString();       // Read entire string
//============================================================================== 

Re: Sketch stalls when browser minimized W10

PostPosted: Thu Mar 10, 2016 7:56 pm
by xtal
tried a couple ideas , that didn't work...

Re: Sketch stalls when browser minimized W10

PostPosted: Thu Mar 10, 2016 8:38 pm
by martinayotte
Did you tried the example libraries/ESP8266WiFi/examples/WiFiWebServer/WiFiWebServer.ino ?

Re: Sketch stalls when browser minimized W10

PostPosted: Fri Mar 11, 2016 6:43 pm
by xtal
I think maybe windows has been applying updates ?---- the verdict is still out....

Martin how would you check within void loop; to see if youa re connected
then issue reset if needed?