Trying to understand what happens I added a print instruction to see where the program stops.
Generally a good idea.
SoftwareSerial mySerial(2, 3);
mySerial.begin(9600);
mySerial.print("webserver");
What is connected to pins 2 and 3? Where is this data supposed to go?
// output the value of each analog input pin
for (int analogChannel = 0; analogChannel < 6; analogChannel++) {
client.print("analog input ");
client.print(analogChannel);
client.print(" is ");
client.print(analogRead(analogChannel));
client.println("
");
}
Do you have something connected to these pins? Or is this just garbage?
or if I change the instruction to mySerial.print(client.read());
Why can't you be bothered to separate the values being printed?
webserver135980202151723551163616664147128352011369512340
numbers!
No. Meaningless crap, since you haven't a clue where each number starts and ends. Lacking that clue, you have no way of determining a meaning for the numbers, which is an essential piece of information.