Chat freely about anything...

User avatar
By Danny1997
#74188 Hello everybody !
I bought 4x ESP-01 8266, while using them with an Arduino, and sending a basic "AT" command, I don't receive anything ! I used all of them and I got the same issue, help me please !

Code: Select all#include <SoftwareSerial.h>

void setup()
{
  Serial.begin(115200);
}

void loop()
{
 esp8266.println("AT");
 if(esp8266.available())
 {
 while(esp8266.available())
  {
    char c = esp8266.read(); // read the next character.
    Serial.print(c);
  } 
 }
}


Image
User avatar
By btidey
#74197 You need to show all the code you are trying to use. The little bit here doesn't show SoftwareSerial being set up, esp8266 being defined, or any AT commands being sent to the board.

In my experience of ESP modules they do mainly come with AT firmware defined, but I don't have any direct experience of ESP-01 units.

You should also consider using better ESP modules to run your whole code that was previously running on the UNO providing there is enough GPIO for your needs. That is a lot easier in most cases.