Using this code the result is always connecton faled...
// Use WiFiClient class to create TCP connections
WiFiClient client;
const int httpPort = 80;
if (!client.connect(host, httpPort)) {
Serial.println(String(host) + " : connection failed");
return;
}
What does client.connect need as a response from my API to return true?