diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-09-15 16:29:17 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-12-14 11:00:25 +0100 |
commit | 677cde6288a4574b8251a4a532b1d9e1594b09b2 (patch) | |
tree | c510a0cdd76e2b8de1cdaf254fd270c8bfebae42 /conf.d/project/etc | |
parent | eabae24ea592420de46e36f0b1af5d39eee5b8a4 (diff) |
Subscription by plugin to signals
Change-Id: Icb923f87df2be8eb664106bc9077b3a8221dd3ce
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'conf.d/project/etc')
-rw-r--r-- | conf.d/project/etc/init-daemon.json | 6 | ||||
-rw-r--r-- | conf.d/project/etc/sig-doors.json | 10 | ||||
-rw-r--r-- | conf.d/project/etc/sources.json | 3 |
3 files changed, 10 insertions, 9 deletions
diff --git a/conf.d/project/etc/init-daemon.json b/conf.d/project/etc/init-daemon.json index dc18f7e..1b27320 100644 --- a/conf.d/project/etc/init-daemon.json +++ b/conf.d/project/etc/init-daemon.json @@ -10,10 +10,10 @@ }, "plugins": [ { - "label": "Door handle", + "label": "low-can-callbacks", "version": "1.0", - "info": "Manage all doors and windows status", - "basename": "doors" + "info": "Manage interaction with low-can service", + "basename": "low-can" } ] } diff --git a/conf.d/project/etc/sig-doors.json b/conf.d/project/etc/sig-doors.json index bc26296..1859dbe 100644 --- a/conf.d/project/etc/sig-doors.json +++ b/conf.d/project/etc/sig-doors.json @@ -39,7 +39,7 @@ "rear_left_door" ], "onReceived": { - "plugin": "Door handle", + "plugin": "low-can-callbacks", "function": "isOpen", "args": { "ojoi": "pok" @@ -53,7 +53,7 @@ "rear_right_window" ], "onReceived": { - "plugin": "Door handle", + "plugin": "low-can-callbacks", "function": "isOpen", "args": {} } @@ -65,7 +65,7 @@ "front_left_window" ], "onReceived": { - "plugin": "Door handle", + "plugin": "low-can-callbacks", "function": "isOpen", "args": {} } @@ -77,7 +77,7 @@ "front_right_window" ], "onReceived": { - "plugin": "Door handle", + "plugin": "low-can-callbacks", "function": "isOpen", "args": {} } @@ -95,7 +95,7 @@ "rear_right_window" ], "onReceived": { - "plugin": "Door handle", + "plugin": "low-can-callbacks", "function": "isOpen", "args": { "evtname": "doors.open" diff --git a/conf.d/project/etc/sources.json b/conf.d/project/etc/sources.json index a70da50..6a9657a 100644 --- a/conf.d/project/etc/sources.json +++ b/conf.d/project/etc/sources.json @@ -10,7 +10,8 @@ } }, "getSignal": { - "function": "_LUA_Simple_Echo_Args", + "plugin": "low-can-callbacks", + "function": "subscribeToLow", "args": { "arg": "first argument" } |