Need help with esp8266

This tutorial will help you !

especially this one

timer.setTimeout(5000L, []() 
  {  
    // When the timer completes, any code here will be executed
  }); 
1 Like