@PaulS & @ieee488 That makes a lot of sense.
I just wanted to make sure you knew that I am not just trying to print the characters.
I made the modification suggested.
This is how I started out initially.
It prints the correct message.
void setup() {
Serial.begin(9600);
Ethernet.begin(mac, ip, gateway, subnet);
server.begin();
client = server.available();
}
void loop() {
char inByte;
char message[sizeMessage];
int bytes;
while(!client){
client = server.available();
}
if(client.available()){
char c = client.read();
Serial.print(c);
}
}
The code that I posted previously was my attempt to collect the characters into a message that could be used later for things like analog output.
Thank you for the help.