     }
   }
   void checkRepository(){
-    // Use WiFiClient class to create TCP connections
-      WiFiClient client;
-  if (!client.connect(HOST, HTTPPORT)) { Serial.println("connection to remote server failed"); return; }
-  // We now create a URI for the request
-  String append_url = getID(WiFi.macAddress());
-  Serial.print("Requesting URL: ");
-  Serial.println(URL + append_url);
-  
-  // This will send the request to the server
-  client.print(String("GET ") + URL + append_url + " HTTP/1.1\r\n" +
-               "Host: " + HOST + "\r\n" + 
-               "Connection: close\r\n\r\n");
-  unsigned long timeout = millis();
-  while (client.available() == 0) {
-    if (millis() - timeout > 5000) {
-      Serial.println(">>> Client Timeout !");
-      client.stop();
-      return;
-    }
-  } 
-  // Read all the lines of the reply from server and print them to Serial
-  while(client.available()){
-    String line = client.readStringUntil('\r');
-    CheckRemoteFeedback(line);
-   }
+          HTTPClient http;
+          http.begin(HOST);
+          http.addHeader("Content-Type", "application/x-www-form-urlencoded");
+          http.POST("id=" + getID(WiFi.macAddress()) + "&version=" + DEV_VERSION);
+          String response = http.getString();
+          http.end();
+          CheckRemoteFeedback(response);  
  }
  void CheckRemoteFeedback(String json){
      StaticJsonBuffer<200> jsonBuffer;

#include <WiFiManager.h>
#include <Servo.h>
#include <SimpleTimer.h>

Servo servo;
/*

  digitalWrite(LED_PIN, HIGH); //turn off led  
  int start_time = millis(); // remember starttime
  servo.attach(MOTOR_PIN);
  servo.write(0); //������ ��� ��� 0
  
  timer.setInterval(REPOSITORY_INTERVAL, checkRepository);
  
