     SerialUSB.println('connecting to WIFI...');
     delay(5000);
   }
-  SerialUSB.println("connected to WIFI.");
-  Serial.println(wifi.getip());
+  SerialUSB.print("connected to WIFI. IP: ");
+  SerialUSB.println(wifi.getip());
   SerialUSB.print("IP from my own getip(): ");
   SerialUSB.println(getIP(true)); // short version of IP, cached
   SerialUSB.print("MAC from my own gethostname(): ");

}

void serial_setup(void) {
  SerialUSB.begin(9600); //Opens USB-Serial connection for terminal
  delay(5000);
  SerialUSB.print("Serial interface is ready\r\n");
}


String getIP(bool cache) {
  static String ip = "";
  if (!(ip.length() && cache)) {
    ip = wifi.getip();
  }
  return ip;
}

