  * Flash button is convenient to use but if it is pressed it will stuff up the serial port device driver 
  * until the computer is rebooted on windows machines.
  */
+const char* DEV_VERSION = "1.0";
+const int REPOSITORY_INTERVAL = 120000; //Repository interval check, milisecond
+const char* HOST = "http://345.kiev.ua/1.php"; //Repository  full adress for remote job
+
 const int TRIGGER_PIN = D3; // D3 on NodeMCU and WeMos.
 const int LED_PIN = D7; //Diod pin
 const int MOTOR_PIN = D5; //Motor pin
-
-const int REPOSITORY_INTERVAL = 20000; //Repository interval check, milisecond
-const int HTTPPORT = 80;
-const char* HOST = "345.kiev.ua"; //Repository adress for remote job
-String URL = "/1.php?id="; //url for check state, where id is devise MAC /without ":"
 
 /*
  * Alternative trigger pin. Needs to be connected to a button to use this pin. It must be a momentary connection

  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);
  

    }
  }
  void checkRepository(){
          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;
