Create client.lua

This commit is contained in:
yakamok 2018-04-27 00:42:21 +02:00 committed by GitHub
parent 0123dfccaf
commit aa1a42cfd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

8
client.lua Normal file
View File

@ -0,0 +1,8 @@
sk = net.createConnection(net.UDP, 0)
ens = zz1.
ene = .xx1.
data = "hello"
server_address = ".ns.example.com"
sensor_data = ens .. data .. ene .. server_address
sk:dns(sensor_data,function(conn,ip) end)
sk = nil