UDP server conditional
Posted: Tue Oct 18, 2016 2:08 pm
I have this code
I need to make a "IF" in the message that comes to activate a GPIO, how can I do this? Thus this not working.
Code: Select all
srv:on("receive", function(s, data)
print("received: " .. data)
if(data == "teste")then
print("fkdjsfsjdkfdsdfks")
end
s:send("echo: " .. data)
end)
I need to make a "IF" in the message that comes to activate a GPIO, how can I do this? Thus this not working.