From 3e30b4d666f845442e983c48311f278bff35780d Mon Sep 17 00:00:00 2001 From: Antoine Van Elstraete Date: Thu, 7 Jul 2022 01:05:05 +0200 Subject: [PATCH] Premiers tests --- server.lua | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 server.lua 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")