Event the simple 'led and buttons' type programs the refresh is excruciatingly slow.
Event the simple 'led and buttons' type programs the refresh is excruciatingly slow.
Explore... Chat... Share...
Moderator: igrr
client.println("Content-Type: application/json");
json.prettyPrintTo(client);
client.println("Content-Type: text/html");
client.println("Content-Type: application/json");
else if(sPath=="/json")
{
ulJReqcount++;
client.println("HTTP/1.1 200 OK");
client.println("Content-Type: application/json");
client.println("Connection: close");
// client.println("Connection: keep-alive");
client.println("Access-Control-Allow-Origin: *");
client.println("Access-Control-Allow-Methods: GET");
client.println("Access-Control-Allow-Headers: Content-Type");
client.println("Access-Control-Max-Age: 500");
client.println();
sResponse = ("{\r\n\"temperature\": [\r\n");
sResponse += pfTemp;
sResponse += ("\r\n],\r\n\"humidity\": [\r\n");
sResponse += pfHum;
sResponse += ("\r\n],\r\n\"dewpoint\": [\r\n");
sResponse += pfDew;
sResponse += ("\r\n],\r\n\"Systemv\": [\r\n");
sResponse += pfVcC/1000;
sResponse += ("\r\n],\r\n\"Low_Hum_Today\": [\r\n");
sResponse += pfHumLow;
sResponse += ("\r\n],\r\n\"High_Hum_Today\": [\r\n");
sResponse += pfHumHigh;
sResponse += ("\r\n],\r\n\"Low_Temp_Today\": [\r\n");
sResponse += pfTempLow;
sResponse += ("\r\n],\r\n\"High_Temp_Today\": [\r\n");
sResponse += pfTempHigh;
sResponse += ("\r\n],\n\"Jsreqs\": [\r\n");
sResponse += ulJReqcount;
sResponse += ("\r\n],\r\n\"Uptime\": [\r\n\"");
sResponse += duration1;
sResponse += ("\"\r\n],\r\n\"TiMestamp\": [\r\n\"");
sResponse += TMnow;
sResponse += ("\"\r\n]\r\n}");
// Send the JSON response to the client
client.println(sResponse);
}
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]