Arduino ethernet enabled receipt printer [Resolved]

zoomkat:

pylon:
To say it short:

  • Don't use the String class

So that caused the problem?

Actually- no it didn't. After removing all the fancy string stuff, I still have the issue.

If I echo out some serial data inside the void right after if(client), I still don't get anything till I hit refresh and submit again:

void loop() {
  // listen for incoming clients
  EthernetClient client = server.available();
  
  if (client) {
    Serial.println(client.read());