Help with my sketch

I would try building the connectivity part of your sketch around the ESP8266 Cayenne connection example posted in this thread

As far as checking the IP on this board, I’m not sure. @kreggly do you think this example sketch from the Arduino site will behave on ESP? I’m not sure what its doing when it looks for the presence of a shield.