#include <SoftwareSerial.h>
SoftwareSerial esp8266(1,0);
void setup()
{
String response = "";
Serial.begin(9600);
esp8266.begin(115200);
Serial.println("hello world");
esp8266.print("AT+RST\r\n");
while(esp8266.available()) {
char c = esp8266.read();
response+=c;
Serial.print(c);
}
Serial.println(response);
esp8266.print("AT+CWMODE=2\r\n");
while(esp8266.available() {
char c = esp8266.read();
response+=c;
Serial.print(c);
}
Serial.println(response);
esp8266.print("AT+CIFSR\r\n");
while(esp8266.available() {
char c = esp8266.read();
response+=c;
Serial.print(c);
}
Serial.println(response);
and here is the serial output on 9600 baud- it seems to want to say something but it's gibberish.
hello world
ðð (then a bunch of boxes)
ðøððø
àððøà
Also a note, whenever I connect the CH_PD pin on the ESP8266 to 3v3 in addition to just 3v3 on the ESP, I am unable to upload sketches, the IDE tells me that the serial port is already in use.. in case that might be related. Any help is appreciated!
Nate