Bróbáltam ezzel.
https://blogs.msdn.microsoft.com/abhinaba/2016/01/23/esp8266-wifi-with-arduino-uno-and-nano/
De csak a setupban lévőt írja ki.