 String DEV_VERSION = "1.0";
 const int POWERCHECK_INTERVAL = 10000; // Check battery volage
 float VOLTAGE_THRESHOLD = 2710; // voltage threshold , mv
-const int REPOSITORY_INTERVAL = 120000; //Repository interval check, milisecond
+const int REPOSITORY_INTERVAL = 5000; //Repository interval check, milisecond
 const char* HOST = "http://345.kiev.ua/1.php"; //Repository  full adress for remote job
+unsigned int UPDPORT = 28031;
 
 const int TRIGGER_PIN = D3; // D3 on NodeMCU and WeMos.
 const int LED_PIN = D7; //Diod pin

          String response = http.getString();
          http.end();
          CheckRemoteFeedback(response);  
 }
 void CheckRemoteFeedback(String json){
     StaticJsonBuffer<200> jsonBuffer;

          float vdd = ESP.getVcc();
          server->send(200, "text/plain", String(vdd));
        });
         server->on("/setconfigparams", [](){
          setConfigParams(server->arg("repository_host"), server->arg("repository_int_check"));
          server->send(200, "text/plain", String("OK"));
        });
        server->begin();
        Serial.println("Custom HTTP server started");
        udp.begin(UPDPORT);
        Serial.println("UPD server started");
        doblink(LED_PIN, 1, 5000);
  }
}
