Here is the code I'm trying to run:
#include <SoftwareSerial.h>
SoftwareSerial esp8266(10, 11); // RX, TX
void setup()
{
Serial.begin(9600);
esp8266.begin(9600);
esp8266.println("AT+CWJAP=\"myAPNAME\",\"myPASS\"");
}
void loop()
{
if (esp8266.available())
Serial.write(esp8266.read());
if (Serial.available())
esp8266.write(Serial.read());
}
I get strange output:
I can enter short commands manually and things work:
But longer commands do not work:
Why do long commands fail?