how to get AT response from ESP8266 connected to arduino
<p>I am fighting with ESP8266 wifi module and connecting arduino. After updating firmware to newest version i started to programm arduino to get data incoming from wifi. I saw many examples about maiking webserver via ESP8266 but none of them works for me. </p>

<p>ESP is connected to my Arduino Leonardo:
></p>

<blockquote>
  <p><strong>Arduino -> ESP8266</strong> </p>
  
  <p>power 3.3V -> vcc</p>
  
  <p>ground -> ground</p>
  
  <p>tx -> rx (via logic level converter 5->3.3V)</p>
  
  <p>rx -> tx (via logix level converter</p>
  
  <p>power 3.3V ->gpio0 (without any resistors)</p>
</blockquote>

<p>I made simple sketch:</p>

<pre><code>void setup(void){

  Serial.begin(9600);
  Serial1.begin(115200);

}

void loop() {
  if(Serial1.available())
  {
    Serial.println("WIFI IS AVAILABLE");
    Serial1.println("AT");
    delay(1000);
  } else {
    Serial.println("WIFI not available.");
    delay(1000);
  }
}
</code></pre>

<p>After executing it ESP8266 is powered (red led is on) and also every second blue led (blinks). That makes me sure that in fakt "AT" command is transmited to module. But there are also two issues:</p>

<ul>
<li><p>i want to get response from esp - in this case word "OK". I tried Serial1.read() but it only reads one byte. Serial1.readString() makes my messages "wifi not available" and sametimes "wifi is available" as if for a while the connection would be unavailable</p></li>
<li><p>after uploading sketch to arduino and having powered esp8266 wifi module is always unavailable - i need to power the module off and on again to have it working. </p></li>
</ul>

<p>Anybody please can help me?</p>