I recently purchased an ESP8266 WI-FI which looks similar to this but is actually this one with the extra row of pins by the serial lines. I'm following along with the instructions on the first page but wondering if the relay can be actuated over the serial console instead of installing the EasyTCP_20 app?
I've tried sending the "Relay ON" command (in Linux) over the serial line in a couple different ways:
printf 'AT %s\r\n' \x0A\x01\x01\xA2 > /dev/ttyUSB0
and right from within the Arduino Serial Monitor application from my desktop but I just get ERROR
back from the ESP. Do I need power on the IN+
and IN-
pins on the board or will the relay get power from the 5v pin next to the serial pins?
AT x0Ax01x01xA2
being sent. And if the\x
were interpreted (if you used$''
syntax:$'\x0A\x01\x01\xA2'
), then\x0a
is a line-feed (the same as\n
) so it would seem pretty weird inside an AT command. Do you have a link to the documentation of the protocol/commands?