Prechádzať zdrojové kódy

fix(core): adjust timing for api requests

sezuisa 10 mesiacov pred
rodič
commit
23353fa20f
1 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 3 3
      WeatherMatrix/WeatherMatrix.ino

+ 3 - 3
WeatherMatrix/WeatherMatrix.ino

@@ -31,9 +31,9 @@ HTTPClient http;
 boolean tempView = false;
 int respCode = 0;
 
-unsigned long startMillis1; 
+unsigned long startMillis1;
 unsigned long currentMillis1;
-unsigned long startMillis2; 
+unsigned long startMillis2;
 unsigned long currentMillis2;
 boolean firstIteration = true;
 
@@ -484,7 +484,7 @@ void loop()
   currentMillis1 = millis();
   currentMillis2 = millis();
 
-  if (firstIteration || (currentMillis1 - startMillis1 >= 10000)) {
+  if (firstIteration || (currentMillis1 - startMillis1 >= 180000)) {
     respCode = http.GET();
     firstIteration = false;
     startMillis1 = currentMillis1;