diff --git a/server.lua b/server.lua new file mode 100644 index 0000000..b6d4290 --- /dev/null +++ b/server.lua @@ -0,0 +1,9 @@ +cs=coap.Server() +cs:listen(5683) + +function hello(payload) + print("hello called") + respond = "hello" + return respond +end +cs:func("hello")