LeonardoEth & Rfid Problem

Working Code below

So, what is the problem, then?

if (client.available()) {
      char c = client.read();
      Serial.print(c);
      if (c == "0")
      {
         digitalWrite(ledPin, HIGH);   
      }
  }

If you connect to the server, you expect to get just one character back? That does not seem like a reasonable assumption to me.

What do your Serial.print()s tell you is happening?