title: How do I convert Wifi.localIP() to String and store it to external variable
body: <p>I am trying to store the ip address into an extern string. My ip address value is in .cpp but then I want to store it in my .h file. I am storing it as string since I want to make it as a link. (http:// "ip address" /)</p>
  
  <p>My .h file</p>
  
  <pre><code>extern std::string ipadd1 = "";
  </code></pre>
  
  <p>My .cpp file</p>
  
  <pre><code>if (connectWifi("", "") == WL_CONNECTED)   {
      DEBUG_WM(F("IP Address:"));
      DEBUG_WM(WiFi.localIP());
  ipadd1 = String(WiFi.localIP());
      //connected
      return true;
    }
  </code></pre>