Post topics, source code that relate to the Arduino Platform

User avatar
By xtal
#42830 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
//============================================================================== 
User avatar
By xtal
#42925 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?