WiFiClient client;
if (!client.connect(host, httpPort))
{
Serial.println("connection failed");
return false;
}
It seems to be like calling connect here should be accessing a method on a NULL object, but it's not. Does this method somehow act as a constructor too?