I want to lower my ESP's baud rate for SerialSoftware
but I keep getting "ERROR" responses to commands below.
I'm using Arduino Mega and Arduino IDE's serial monitor for commands:
AT+CIOBAUD=9600
AT+UART_DEF=9600,8,1,0,3
I tried AT and couple other commands they seems to be working and returning OK.
I use the code below for sending commands:
SoftwareSerial mySerial(10, 11); // RX, TX
void setup() {
Serial.begin(9600);
while (!Serial) {}
Serial.println("Goodnight moon!");
mySerial.begin(115200);
mySerial.println("Hello, world?");
}
void loop() {
if (mySerial.available()) {
Serial.write(mySerial.read());
}
if (Serial.available()) {
mySerial.write(Serial.read());
}
}