devsaurus wrote: Hm, I see. These are probably outdated. The current docs for the firmware in development (this is what you get with http://nodemcu-build.com/) are at https://nodemcu.readthedocs.org/en/dev/.
Thanks devsaurus
I am running NodeMcu 0.9.6 (Doit.am Version) build 20150701 powered by Lua 5.1.4, what is yours where this sample code runs?