   }
   return result;
 }
+
+//-----

          Serial.println();
          Serial.println("-----> Could not connect to WIFI");
        }
        ESP.restart();
        delay(200);
      }

    }

    if (EVENT_PRINT) {


void setup()
{
  //
  startMills = millis();

  // pinmode setup
  pinMode(resetupPin, OUTPUT);
  pinMode(blueLED, OUTPUT);
  pinMode(greenLED, OUTPUT);
  pinMode(redLED, OUTPUT);

  //`
  digitalWrite(resetupPin, LOW);
  digitalWrite(redLED, HIGH);

