Problem connected to a server with authentication keyin arduino framework.
Posted: Wed May 16, 2018 3:26 pm
Hi, I am trying to connect to a web server using the code below:
Key is the authentication key of the server. I am getting "connection failed". Is there a way to implement this?
Code: Select all
WiFiClient client;
//Connect to the server
if (!client.connect("http://[url]/test/test?api_key=[key]", clientPort)) {
Serial.println("connection failed");
return;
}