   HTTPClient http;
  http.begin("http://arduinoday.azurewebsites.net/");
   Serial.println(http.GET());
+  pinMode(0,OUTPUT);
 }
 
 void loop() {

      String payload = http.getString();   //Get the request response payload
      Serial.println(payload);                     //Print the response payload
      if(payload.length()>0){
                  boundLow = payload.indexOf(':');
                  index2 = payload.substring(0, boundLow).toInt();
                  boundHigh = payload.indexOf(delimiter, boundLow+1);
                  dir = payload.substring(boundLow+1, boundHigh).toInt();
                  boundLow = payload.indexOf(delimiter, boundHigh+1);
                  msec = payload.substring(boundHigh+1, boundLow).toInt();
                  }
                  Serial.printf("index: %d, dir: %d time%d",index2,dir,msec);
    }
 
    http.end();   //Close connection
 
  }
  delay(15000);
}

 
    HTTPClient http;  //Declare an object of class HTTPClient
 
    http.begin("http://arduinoday.azurewebsites.net/lights.txt");  //Specify request destination
    int httpCode = http.GET();                                                                  //Send the request
 
    if (httpCode > 0) { //Check the returning code
