Arduino ESP8266 Webserver
Take a look at the SimpleTimer [http://playground.arduino.cc/Code/SimpleTimer] library in the Arduino IDE environment.

You can have timers to:


call a function at a consistent interval,
call a function once after a set delay,
call a function a set number of times with a consistent interval
between.