Convert IPAddress to String for use with Spark.publish()

I just added a change to firmware so you can turn any Printable into a String (IPAddress is Printable):

  IPAddress myIP = WiFi.localIP();
  Spark.publish("LocalIP", String(myIP), PRIVATE);

This will be in the 0.4.5 release, due out on 2 Sept.

6 Likes