Connecting Arduino to wunderground using ESP8266
<p>I'm trying to use an ESP8266 and Arduino Uno to connect to wunderground and get the JSON file to get the current weather. With my code I am connecting to the server fine. What seems to be the issue is that it's not giving me the whole return file.</p>

<pre><code>#include &lt;SoftwareSerial.h&gt;
#include &lt;ArduinoJson.h&gt;

SoftwareSerial esp8266(8, 9);
bool flag = true;

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  esp8266.begin(9600);
}

void loop() {
  if (flag) {
    String cmd;
    int length;
    cmd = "AT+CIPSTART=\"TCP\",\"";
    cmd += "api.wunderground.com";
    cmd += "\",80";
    esp8266.println(cmd);
    Serial.println(cmd);
    delay(2000);
    Serial.write(esp8266.read());
    if (esp8266.find("CONNECT")) {
      Serial.println("CONNECT found so your connected");
    }
    String action;
    action = "GET http://api.wunderground.com/api/APIKEY/conditions/q/Canada/Regina.json HTTP/1.0\r\n\r\n";
    length = action.length();
    cmd = "AT+CIPSEND=";
    cmd += length;
    esp8266.println(cmd);
    Serial.println(cmd);
    delay(5000);
    if (esp8266.find("&gt;")) {
      Serial.print("&gt;");
    } else {
      esp8266.println("AT+CIPCLOSE");
      Serial.println(F("connect timeout"));
    }

    esp8266.println(action);
    Serial.println(action);
    delay(700);

    String test = "";
    while (esp8266.available()) {
      char c = esp8266.read();
      test += c;
    }
    Serial.println(test);
    flag = false;
    Serial.println("Flag is false");
  }
}
</code></pre>

<p>Running this code give me the following result:</p>

<blockquote>
  <p>AT+CIPSTART="TCP","api.wunderground.com",80
      ACONNECT found so your connected
      AT+CIPSEND=97
  GET <a href="http://api.wunderground.com/api/7287eb3ace065563/conditions/q/Canada/Regina.json" rel="nofollow">http://api.wunderground.com/api/7287eb3ace065563/conditions/q/Canada/Regina.json</a> HTTP/1.0</p>
  
  <p>busy s...</p>
  
  <p>Recv 97 bytes</p>
  
  <p>SEND OK</p>
  
  <p>+IPD,1460:HTTP/1.0:"0.1",
        "termsofService":"<a href="http://www.wunderground.com/weather/api/d/terms.html" rel="nofollow">http://www.wunderground.com/weather/api/d/terms.html</a>",
        "
      Flag is false</p>
</blockquote>

<p>As you can see I only get a snippet of the JSON file. I'm not sure what the problem is.</p>