ESP8266 not responding correctly to long commands
Posted: Wed Feb 04, 2015 5:22 am
I have a ESP8266 wired correctly with external 3.3v supply and voltage divider (5v -> 3.3v).
Here is the code I'm trying to run:
I get strange output:
I can enter short commands manually and things work:
But longer commands do not work:
Why do long commands fail?
Here is the code I'm trying to run:
Code: Select all
#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?