   else
   {
     // if you didn't get a connection to the server:
-    Serial.println("connection failed");
+    debugln("connection failed");
   }
 }
 

      notConnected = false;
    else
    {
      Serial.println("Not connected");
      delay(1000);
    }
  }

  Serial.println("connecting...");

  // if you get a connection, report back via serial:
  if (client.connect(server, port))
  {
    Serial.println("connected");
    // Make a HTTP request:
    client.beginWrite();
    client.print("GET ");

  if (client.available())
  {
    char c = client.read();
    debug(c);
  }

  // if the server's disconnected, stop the client:
  if (!client.available() && !client.connected())
  {
    debugln();
    debugln("disconnecting.");
    client.stop();

    // do nothing forevermore:
