-->
Page 1 of 1

UART->WiFi<---->WiFi->UART

PostPosted: Sat Feb 11, 2017 7:45 pm
by lida
Hi All
I know that many of the experienced “Gurus” read this forum, therefore I kindly ask for some hints to solve my data transfer problem between two ESP8266 module’s UART->WiFi->WiFi->UART.
As not being ‘fluent’ in Lua-scripts, I tried to find ready-made code/firmware to use. I searched a lot, I tested for example Jeelab’s ESP-Link which I flashed to both of my NodeMCU boards. Of course one acts as AP the other as STATION. The AP assigns properly the IP address, so they are linked. I used Telnet on COM12 to the ESP(AP) and another Telnet (IP=AP-IP/Port23) which was OK, so UART to WiFi is fine. The same I did with another Telnet on COM13 to the ESP(STATION) and the fourth Telnet (IP=STATION-IP/Port23) and they talk fine as well. But Telnet-COM12 and Telnet-COM13 cannot talk. So between the 2 ESP-WiFi side no data exchange.
It might be that for the communication it is not enough that the 2 ESPs 'see each other' with IP’s matching, it is only the first step! The second step would be a TCP-Socket Client which is not possible with ESP-Link (I think).
So, I would keep one module with ESP-Link (as server) and I am looking for another piece of code as a Telnet client (maybe Lua script) for the other ESP module.
Can someone direct me to find LUA Telnet Client? Or maybe there is other solution to UART->WiFi->WiFi->UART?
Thanks in advance.
<Lida>

Re: UART->WiFi<---->WiFi->UART

PostPosted: Mon Feb 13, 2017 1:45 pm
by gdsports
I have never used Lua but this might be what you are looking for. Also includes Arduino code. Run this code on one ESP and esp-link on the other one.

http://www.roboremo.com/esp8266-tcp-to-serial.html