Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By xtal
#39076 I'm having the same problem,,,
I'm using Arduino 1.6.5
ESP SDK 1.5.0 ----------- ESP 1.3.0 had same issue
Mine appears to run longer if I refresh 8 seconds.................................been up 48 hrs now
User avatar
By xtal
#39298 I've been running approx 91 hrs with 8 second refresh.... using 15 sec refresh couldn't get 24 hrs....

FYI - FYI
I'm using the refresh to update var/text values and have discovered that IE/Chrome/Saphari don't respond the same, so standard isn't too standard...
When using"HTTP/1.1 200 OK\r\n"; in Chrome the meta refresh stops functioning, IE works ok, did not check Saphari.
Used JS to generate Refresh [location.reload(true) - generates requests Last POST / GET ....
I sure would like to know what is considered a Refresh Request.....
Used JS to click button to update page - generates requests Last POST / GET
Also using post in Chrome , the Refresh request is previous POST followed by GET , I'm used to GET followed by GET..
The POST / GET is a problem because I execute the last command again...The JS button click allows a workaround
but have not checked on all browsers.......

Has any body else seen this......

Heres the JS in case anybodt interested - it's currently set to click a button in the GET form thus giving
a GET / GET request

Code: Select all/*============================== COUNTER SCRIPT ==================================*/ 
String JavaScript()  {
 //rfh = RFH;
  String h1 = "<script type = 'text/javascript'>\nvar timeInSecs;\nvar ticker;";
  h1 += "function startTimer(secs) ";
  h1 += "{ timeInSecs = parseInt(secs)-1;";
  h1 +=   "ticker = setInterval('tick()',1000); }";
  h1 += "function reload() ";
  h1 += "{ location.reload(true); }";
  h1 += "function tick() ";
  h1 += "{ var secs = timeInSecs;";
  h1 +=   "if (secs>0)";
  h1 +=      "{timeInSecs--;}";
  h1 +=   "else"; 
  h1 +=      "{  document.getElementsByName('REF')[0].click();";
  //h1 +=        "JSrfh = 15;";
  //h1 +=        "reload(); ";
  h1 +=        "clearInterval(ticker);";
  h1 +=        "startTimer("; h1 += RFH; h1 += "); }"; 
  h1 += "document.getElementById('countdown').innerHTML = secs;";
  h1 += "}";
  h1 += "startTimer("; h1 += rfh; h1 += "); </script>";
  return h1;        } 
/*================================================================================*/

String GBtn()  {
 String B  = "<form action='' method='GET'>"; 
  B += "<input type='submit' name='REF'  cellpadding='19' value = ' '>";
  B += "</form>";
  return B;
}
/*================================================================================*/