 #include <WiFiManager.h>
 #include <Servo.h>
 #include <SimpleTimer.h>
+#include <ESP8266HTTPClient.h>
 
 Servo servo;
 /*

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