10 lines
140 B
Lua
10 lines
140 B
Lua
|
cs=coap.Server()
|
||
|
cs:listen(5683)
|
||
|
|
||
|
function hello(payload)
|
||
|
print("hello called")
|
||
|
respond = "hello"
|
||
|
return respond
|
||
|
end
|
||
|
cs:func("hello")
|