The function below is used to read the data from a website, and client is running as EthernetClient, however,
EthernetClient client;
char input[600];
......
void ReceiveEthernetResponse1()
{
int index = 0;
while(client1.available() > 0)
{
char c = client1.read();
** input[index] = c; // This line cause the problem of receiving data and sending data out.**
Serial.println(input[index]);
index++;
}
The highlighted line has the problem. Everytime when it is there, the communication is stopped and I cannot receive any information. But when it is removed, it is OK to receive and print the data on serial port. Any suggestions? Thanks.