Can't Receive UDP Packekts
Posted: Sun May 03, 2015 11:38 am
I know other people have written about this, but I've tried all of the "solutions" I can find, without any luck. Here is the code I'm trying to get working:
I'm new to using UDP packets. I have code that can send out a UDP packet (confirmed with Wireshark), however I haven't been able to receive the answers back from my UDP packet. I see the answers in Wireshark, but this code never prints anything out.
Given the number of other people having problems, is there some flakiness in either the ESP SDK or in the LUA implementation?
Code: Select all
su = net.createServer(net.UDP)
su:on("receive", function(su,payload)
print("got data")
end)
su:listen(5353)
I'm new to using UDP packets. I have code that can send out a UDP packet (confirmed with Wireshark), however I haven't been able to receive the answers back from my UDP packet. I see the answers in Wireshark, but this code never prints anything out.
Given the number of other people having problems, is there some flakiness in either the ESP SDK or in the LUA implementation?