Chat freely about anything...

User avatar
By Tomer Abramovich
#39574 I read the documentation about the the ESP8266 AT commands, and what I understood is that I write a command terminating with carriage return and line feed (cr and lf) and when I read I will first get the echo for my command, and then the response followed by cr and lf as well.

I tried the following python code:
import serial
s = serial.Serial("COM6", 115200)
s.write(b"AT\r\n")

I expected to get:
"AT\r\nOK\r\n"

but got:
"AT\r\r\n\r\nOK\r\n"

as a response. Why is that?