Problem connected to a server with authentication keyin arduino framework.

trix37
Posts: 1
Joined: Wed May 16, 2018 3:16 pm

Problem connected to a server with authentication keyin arduino framework.

Postby trix37 » Wed May 16, 2018 3:26 pm

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?


Who is online

Users browsing this forum: Google [Bot] and 142 guests