 const int yellowLED  = 6;
 const int routerPin1 = 8;
 const int routerPin2 = 9;
-const int resetRouterTime = 30000;
-const int timeBetweenPings = 5000;
+const int resetRouterTimeSec = 30;
+const int secBetweenPings_Up = 5;
+const int secBetweenPings_Down = 1;
+const int startUpDelaySec = 5;
+const int switchPin = 12;
 
 String internetStatus;
 

    
    digitalWrite(yellowLED, LOW);

    if(internetStatus[0] == '0')
        resetRouter();
    else
        delay(timeBetweenPings);
}

void resetRouter(void) {
  digitalWrite(routerPin1, LOW);
  digitalWrite(routerPin2, LOW);
  delay(resetRouterTime);
  digitalWrite(routerPin1, HIGH);
  digitalWrite(routerPin2, HIGH);
}

    Process internetCheck;

    digitalWrite(yellowLED, HIGH);

    internetCheck.runShellCommand("/usr/bin/checkInternet.py");

    internetStatus = "";
