mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 11:02:12 +01:00
Chunk web responses
This commit is contained in:
parent
ad5c64c4c2
commit
a81d1b843d
11 changed files with 154 additions and 84 deletions
|
|
@ -38,8 +38,6 @@ void setup() {
|
|||
}
|
||||
|
||||
void loop() {
|
||||
if(!rebootDelay.reboot) git.loop();
|
||||
|
||||
// put your main code here, to run repeatedly:
|
||||
if(rebootDelay.reboot && millis() > rebootDelay.rebootTime) {
|
||||
Serial.print("Rebooting after ");
|
||||
|
|
@ -55,6 +53,7 @@ void loop() {
|
|||
if(millis() - timing > 100) Serial.printf("Timing Somfy: %ldms\n", millis() - timing);
|
||||
timing = millis();
|
||||
if(net.connected()) {
|
||||
if(!rebootDelay.reboot) git.loop();
|
||||
webServer.loop();
|
||||
if(millis() - timing > 200) Serial.printf("Timing WebServer: %ldms\n", millis() - timing);
|
||||
timing = millis();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue