In my project I'm grabbing some data from a CC3000 and I'm storing it to a string. For some reason, only a part of the text being sent is being saved to the string. Does anybody know why? Is there a limit to the String object?
/* Read data until either the connection is closed, or the idle timeout is reached. */
while (www.connected() ) {
while (www.available()) {
char c = www.read();
//Serial.print(c);
input = String(input + c);
}
}
www.close();
Serial.println();
// Serial.println(textTwo);
Serial.println(input);
Serial.println(F("-------------------------------------"));
Also, while I'm already asking a question, what is a good way to parse XML or Json?
Thanks!