So I have a set up with an Arduino Nano and I want to send serial data to the ESP8266 under NodeMcu using LUA.
So I first loaded your script, called it "serial" on the Esp8266/Nodemcu.
Then I wrote a simple sketch in Arduino to print("cmd_2(78)" ) to see if I receive it on the ESP8266.
I receive it correctly. But it is not being processed on the ESP8266. ie it shows cmd_(78) but not the serial.lua processing which should show print("cmd_2(78)received"). I'm obviously doing something wrong.
The connection from the esp28566 is tx-rx(ard),rx-tx(ard) and ard-d8->ttlinterface* tx and ard-d9->ttlinterface rx.
Any suggestions to debug ?
Thanks
Regards
PS: I have successfully tested the esp8266 standalone with nodemcu and it transmits to my webserver flawlessly, periodically as required.
*ttlinterface(CP2102):http[url]://www.ebay.com/itm/321546809495?_trksid=p2060353.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT