I'm working with the web client example code (
http://arduino.cc/en/Tutorial/DnsWebClient). I have tweaked it slightly, so that I can (theoretically) get a specific value contained in the html the arduio "GET"s. The part I modified is as follows:
{
// if there are incoming bytes available
// from the server, read them and print them:
if (client.available()) {
char c = client.read();
String response = "";
response = response + c;
Serial.print(response);
String output = response.substring(10);
Serial.print(output);
}
The printing of "response" to the serial output works, I get the HTTP headers and the full content of the HTML page. The printint of "output" however just returns a blank line. Shouldn't it output everyhting after the first 10 character's of what "response" outputs?