title: how create TCP server by ESP8266?
body: <p>I want to create a simple Wifi TCP server by ESP8266 in Arduino IDE. But I have a big problem: when I send a character or string from client I can't receive it on the server.</p>
  
  <p>In fact I connect esp8266  to my PC and I want to see send character from client in pc terminal.
   my sending side is Socket protocol app for android!and complete code I write in sever side is:</p>
  
  <pre><code>WiFiServer server(8888);
  void setup() 
  {
    initHardware();
    setupWiFi();
    server.begin();
  }
  void loop() 
  {
    WiFiClient client = server.available();
    if (client) {
      if (client.available() &gt; 0) {
        char c = client.read();
        Serial.write(c);
      }
    }
  }
  void setupWiFi()
  {
    WiFi.mode(WIFI_AP);
    WiFi.softAP("RControl", WiFiAPPSK);
  }
  
  void initHardware()
  {
    Serial.begin(115200);
  }
  </code></pre>
  
  <p>Baudrate it set to 115200 on both sides.</p>