Post your best Lua script examples here

User avatar
By chris123456
#77651 Hello guys
I'm new to the group, I just wrote, if someone can help me, I need a guide or even a book to buy to learn how to use esp8266 to send data between a server and a client (ex: I have 2 esp8266 one I want to use it as server and the other as a client and have them talk to each other)
Thanks in advance
User avatar
By marcelstoer
#77672 No recipe-style tutorial but excellent API documentation.
- server: https://nodemcu.readthedocs.io/en/lates ... socketsend
- client: https://nodemcu.readthedocs.io/en/lates ... etsocketon

Maybe you find some more hints in http://www.electronicwings.com/nodemcu/ ... plorer-ide but I don't know if the code there is accurate and up-to-date.