Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4922

conn:send conn:on trying to find info on how to use.

$
0
0
I been playing with Lua script and I run into conn:send and conn on . But I can't find and thing about it
How it is used. I read up On Lua and and It look like Lua naming of a function.
Code (Text):
  1. conn:on("receive",function(conn,payload)
  2.     --next row is for debugging output only
  3.     print(payload)
I think it's just being used as variable
Code (Text):
  1. srv=net.createServer(net.TCP) srv:listen(80,function(conn)
  2.     conn:on("receive",function(conn,payload)
  3.     --next row is for debugging output...
conn:send conn:eek:n trying to find info on how to use.

Viewing all articles
Browse latest Browse all 4922

Trending Articles