esp8266 Low Power mode - modem sleep

The attached sketch shows a simple example of modem sleep,
it will sleep for 20 seconds then wake for 15, and loop.
this requires the staging version in boards manager:
http://arduino.esp8266.com/staging/pack ... index.json
it will sleep for 20 seconds then wake for 15, and loop.
this requires the staging version in boards manager:
http://arduino.esp8266.com/staging/pack ... index.json