Page 1 of 1

Problem connected to a server with authentication keyin arduino framework.

Posted: Wed May 16, 2018 3:26 pm
by trix37
Hi, I am trying to connect to a web server using the code below:

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;
  }
Key is the authentication key of the server. I am getting "connection failed". Is there a way to implement this?

Re: Problem connected to a server with authentication keyin arduino framework.

Posted: Thu May 17, 2018 6:30 pm
by chegewara