Post your best Lua script examples here

User avatar
By evilADevil
#15576 Hello everybody. I have a quick question. Is there a way to retrieve the ip address of the sender when receiving a UDP message? I would like to catch from the script a UDP datagram and respond to the sender so that it knows the ESP8266 exists.
A script example would be appreciated. Thanks a lot in advance.
Ciao, Alex
User avatar
By TerryE
#15605 net.socket:getpeer() was added to master on 13th Feb, but this didn't make the 0.9.5 commit.
User avatar
By TerryE
#15638 Haven't checked github, but then again -- you can do this as easy as me, or just download this this dev version and try it. 8-)