I have crated a test program using the TCPServer example.
I need a bit of help understanding client.read();
In the example it has server.write(client.read()); which i get, so then i changed it to this.
Serial1.print((char)client.read()); which works just fine.
what puzzles me is if i do the following I will get how many bytes it received
z = client.read();
So then why doesn’t Serial1.print((char)client.read()); print the bytes received ? It prints the received data.
what i am trying to do is take how many bytes received and throw that into a buffer.
z = client.read(); // how much data did we get.
memcpy(temp, ??, z); // i do not know how to get to the received data buffer