arduino + esp8266 code example Example 1: esp8266 arduino WiFi.printDiag(Serial); Example 2: esp8266 arduino Serial.println(WiFi.localIP());