A simple example to control johhny-five(Arduino, Raspberry pi etc) over WiFi using ESP8266 Read the complete article here