summaryrefslogtreecommitdiffstats
path: root/conf.d/project/lua.d/onload-audio-oncall.lua
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2017-08-17 00:56:43 +0200
committerFulup Ar Foll <fulup@iot.bzh>2017-08-17 00:56:43 +0200
commit5e919fde0a4c66b0203c46b8f06f303fcceaedde (patch)
tree6e4937b46d7370e9c8abe1f9a829759deda75ba2 /conf.d/project/lua.d/onload-audio-oncall.lua
parenta4899ab57f08aeb2741d08f74d7593c85a0ad3f4 (diff)
Implemented Timer and Event from Lua
Diffstat (limited to 'conf.d/project/lua.d/onload-audio-oncall.lua')
-rw-r--r--conf.d/project/lua.d/onload-audio-oncall.lua31
1 files changed, 0 insertions, 31 deletions
diff --git a/conf.d/project/lua.d/onload-audio-oncall.lua b/conf.d/project/lua.d/onload-audio-oncall.lua
index 13cda4b..08b25e5 100644
--- a/conf.d/project/lua.d/onload-audio-oncall.lua
+++ b/conf.d/project/lua.d/onload-audio-oncall.lua
@@ -68,34 +68,3 @@ function Test_Call_Sync (request, args)
end
end
--- create a new event name
-function Test_Event_Make (request, args)
-
- AFB:notice ("Test_Event_Make args=%s", args)
-
- local err evt_handle= AFB:event (args["evtname"])
- if (err) then
- AFB:fail ("AFB:Test_Event_Make fail event=%s", args["evtname"]);
- else
- AFB:success (request, {})
- end
-
- local evtData = {
- ["val1"]="My 1st private Event",
- ["val2"]=5678
- }
-
- AFB:notify (evt_handle, evtData)
-end
-
--- send an event on default binder event
-function Test_Event_Notify (request, args)
-
- AFB:notice ("Test_Event_Notify args=%s", args)
- local err AFB:notify (args)
- if (err) then
- AFB:fail ("AFB:Test_Event_Make fail event=%s", args["evtname"]);
- else
- AFB:success (request, {})
- end
-end