-->
Page 1 of 1

Getting weird responses from ESP8266 AT commands

PostPosted: Sun Jan 24, 2016 10:52 am
by Tomer Abramovich
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?