I was trying some AT commands using the monitor of the Arduino Web Editor with an Arduino Uno and a ESP8266 module. It was working at 115200 bauds but then I changed it with AT+CIOBAUD=19200 and now it can't communicate.

How can I change the baudrate to 115200?

Now I see this:

Monitor with weird characters.

  • How were you "trying" those AT commands?
    – Majenko
    Dec 2 '17 at 19:41

Have you tried setting the web editor's baud rate to both the old and the new values? I ask because the CIOBAUD command has been obsolete for a while now so, depending on the age of your device, it may have done nothing. The command was replaced by "AT+UART_CUR" and "AT+UART_DEF" which have a different syntax.

See this answer to a similar question.


Yes, here's an example:

// Declare a serial object to talk to ESP8266
SoftwareSerial EspSerial(WIFITX_PIN, WIFIRX_PIN);  // RX, TX

void setup(void){
   // Init WiFi serial

I've used 9600 baud in my example since SoftwareSerial may not work well at faster speeds.

Update 2:

Is it possible to send AT commands from the code instead of the monitor?

Yes, easily. Once the above code has run (and note that I've deleted an unnecessary line since update 1), you can send strings to the ESP with EspSerial.print() and EspSerial.println(). Here's an AT command example:

// Set 9600 baud, standard 8-bit frame, and save as power-on default:
  • Is it possible to set baudrate inside the code with a sentence? Dec 2 '17 at 20:22
  • Is it possible to send AT commands from the code instead of the monitor? Dec 3 '17 at 11:58
  • your question has been answered. why are you posting new questions here?
    – jsotola
    Dec 6 '17 at 6:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.