From 12097251ec058b1fa9d9202998c829b27ee5554f Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Sun, 17 Sep 2017 19:20:40 +0200 Subject: Get CPP controller plugin works Context passing variables not working well Change-Id: Ibc67bef353e5cc2e53ef9e5579d106baab92a604 Signed-off-by: Romain Forlot --- conf.d/project/etc/sig-doors.json | 72 ++++++++++++++++++++++++++++++++++----- 1 file changed, 64 insertions(+), 8 deletions(-) (limited to 'conf.d/project') diff --git a/conf.d/project/etc/sig-doors.json b/conf.d/project/etc/sig-doors.json index 1859dbe..ea191e4 100644 --- a/conf.d/project/etc/sig-doors.json +++ b/conf.d/project/etc/sig-doors.json @@ -2,35 +2,91 @@ "signals": [ { "id": "rear_left_window", - "source": "low-can/messages.windows.rear_left.open" + "source": "low-can/messages.windows.rear_left.open", + "onReceived": { + "plugin": "low-can-callbacks", + "function": "isOpen", + "args": { + "ojoi": "pok" + } + } }, { "id": "rear_left_door", - "source": "low-can/messages.doors.rear_left.open" + "source": "low-can/messages.doors.rear_left.open", + "onReceived": { + "plugin": "low-can-callbacks", + "function": "isOpen", + "args": { + "ojoi": "pok" + } + } }, { "id": "rear_right_window", - "source": "low-can/messages.windows.rear_right.open" + "source": "low-can/messages.windows.rear_right.open", + "onReceived": { + "plugin": "low-can-callbacks", + "function": "isOpen", + "args": { + "ojoi": "pok" + } + } }, { "id": "rear_right_door", - "source": "low-can/messages.doors.rear_right.open" + "source": "low-can/messages.doors.rear_right.open", + "onReceived": { + "plugin": "low-can-callbacks", + "function": "isOpen", + "args": { + "ojoi": "pok" + } + } }, { "id": "front_left_window", - "source": "low-can/messages.windows.front_left.open" + "source": "low-can/messages.windows.front_left.open", + "onReceived": { + "plugin": "low-can-callbacks", + "function": "isOpen", + "args": { + "ojoi": "pok" + } + } }, { "id": "front_left_door", - "source": "low-can/messages.doors.front_left.open" + "source": "low-can/messages.doors.front_left.open", + "onReceived": { + "plugin": "low-can-callbacks", + "function": "isOpen", + "args": { + "ojoi": "pok" + } + } }, { "id": "front_right_window", - "source": "low-can/messages.windows.front_right.open" + "source": "low-can/messages.windows.front_right.open", + "onReceived": { + "plugin": "low-can-callbacks", + "function": "isOpen", + "args": { + "ojoi": "pok" + } + } }, { "id": "front_right_door", - "source": "low-can/messages.doors.front_right.open" + "source": "low-can/messages.doors.front_right.open", + "onReceived": { + "plugin": "low-can-callbacks", + "function": "isOpen", + "args": { + "ojoi": "pok" + } + } }, { "id": "rear_left", -- cgit 1.2.3-korg