The entire project is discussed here:
http://www.pubnub.com/blog/basic-iot-publishsubscribe-messaging-for-esp8266/
And the source code can be found here:
https://github.com/pubnub/pubnub-esp8266
I am relatively new to the ESP8266, and I would love some feedback from the community about how I am using it, or if you have any other comments or suggestions!
Full disclosure, I do work at PubNub, and I don't mean for this post to be an advertisement. (I'm an engineer, not in marketing!) I am really more interested on what anyone thinks about the project...
Respecfully,
Kurt E. Clothier