Browse Source

fix(core): adjust timing for api requests

sezuisa 10 months ago
parent
commit
23353fa20f
1 changed files with 3 additions and 3 deletions
  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;