 
 void loop() {
     WiFiClient client = server.available();  
+    servoLeft.attach(pinL);
+    servoRight.attach(pinR);
 //    servoLeft.write(360);
 //    servoRight.write(360);
 //    delay(5000); 

    stopedL = true;
  }
}

void moveR(){
  stopL();
  if(stopedR){
    servoRight.attach(pinR);
    stopedR = false;
  }
  servoRight.write(360*rightF);
  lastCommand = millis(); 
}

void moveL(){
  stopR();
  if(stopedL){
    servoLeft.attach(pinL);
    stopedL = false;
  }
  servoLeft.write(360*leftF);
  lastCommand = millis();  
}

void moveF(){
  if(stopedL){
    servoLeft.attach(pinL);
  }
  if(stopedR){
    servoRight.attach(pinR);
  }
  servoLeft.write(360*leftF); 
  stopedL = false;
  servoRight.write(360*rightF); 
  stopedR = false;
  lastCommand = millis(); 
}

void moveB(){
  if(stopedL){
    servoLeft.attach(pinL);
  }
  if(stopedR){
    servoRight.attach(pinR);
  }
  servoLeft.write(-360*leftF); 
  stopedL = false;
  servoRight.write(-360*rightF); 
  stopedR = false;
  lastCommand = millis(); 
}

void stopAll(){
  stopR();
  stopL();
}

void setup() {

//  Serial.println(millis() - lastCommand);
//  Serial.println(stopedL);
//  Serial.println(stopedR);
//  if( (millis() - lastCommand) >= 2000){
//      Serial.println("stop");
//      stopAll();
//    }
}
