I am currently trying to use the tcp2uart.lua example. It does works but in a strange way...
As I am new to ESP8266, LUA, and events programming, I am probably missing something obvious.
Here's my setup :
- ESP8266-12 running NodeMCU 0.9.6
- basic init.lua to init wireless link
- tcp2uart.lua included to this basic init.lua (only thing changed: baudrate to 115200)
(see code here : http://codepad.org/TuQzCOfs)
- serial console connected to ESP8266 UART @ 115200
- telnet consol connected to the ESP8266 IP
Now for the use case :
- If I type on the telnet console, I see the data displayed on the serial console; no problems here
- If I type on the serial console, I see the data displayed on the telnet console; still no problems here
- If I type again on the telnet console, I still see the data displayed on the serial console, but I also see the char I just typed displayed on the telnet console, as if I had local echo enabled on my telnet console (which is not).
For me it is like receiving char from the UART side of the ESP mess something up in my lua code (or ESP framework) so each char received by the nodeMCU TCP server are echoed back to the the sender.
I insist that before sending char on the UART side, there is no echo on the telnet side
Does anyone already faced this?
Thanks for your time!