http://bbs.espressif.com/viewtopic.php?f=46&t=850 Might be worth to include in the upcoming 2.1.0 release of esp8266-arduino?