I have an ESP8266 connected to my arduino, and if I hold the reset button, I can talk to the ESP over serial terminal by typing AT commands on my laptop. I see the little blue LED flash with every command, and the ESP responds perfectly and can connect to the internet. But when I stop holding the reset button and my arduino runs code to try to talk to the ESP, it doesn't work. The blue light on the ESP doesn't even flash, despite that the commands I'm trying to send show up in my serial terminal, and the little yellow TX light on the arduino flashes. Any advice? My code is below.
#include <Wire.h> // Serial library
void setup() {
Serial.begin(115200); // Communication with ESP8266 via 5V/3.3V level shifter
Serial.setTimeout(5000); // Set the timeout value for the ESP8266
delay(5000); // Delay to complete setup
}
void loop() {
Serial.println("AT"); // Send "AT" to the ESP 10 times/second
delay(100);
}