From bdf2d19cf8a3d6005456508ca52dba74cd9c103f Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Fri, 8 Sep 2017 19:03:21 +0200 Subject: Reformat configuration schema Change-Id: I9550b51bb343c683e84de7200ec6a73ce1dcd71a Signed-off-by: Romain Forlot --- conf.d/project/etc/sig-sources.json | 67 +++++++++++++++++++++++-------------- 1 file changed, 41 insertions(+), 26 deletions(-) (limited to 'conf.d/project/etc/sig-sources.json') diff --git a/conf.d/project/etc/sig-sources.json b/conf.d/project/etc/sig-sources.json index 076139f..95de2fa 100644 --- a/conf.d/project/etc/sig-sources.json +++ b/conf.d/project/etc/sig-sources.json @@ -6,39 +6,54 @@ "name": "afb-signal-composer", "version": "1.0" }, - "onload": [{ - "label": "onload-signal-composer", - "info": "onload initialisation config", - "require": [ - { - "label": "CAN bus", - "api": "low-can", - "info": "Low level binding to handle CAN bus communications", - "callback": "c function to subscribe on signals", - "lua": "or a lua function to subscribe on signals", + "sources": [ + { + "api": "low-can", + "info": "Low level binding to handle CAN bus communications", + "init": { + "function": "c/lua (depend on name) function to initialize binding", "args": { "arg": "first argument" } }, - { - "label": "GNSS/GPS", - "api": "gps", - "info": "Low level binding which retrieve Satellite positionning values", - "callback": "c function to subscribe on signals", - "lua": "or a lua function to subscribe on signals", + "get_signal": { + "function": "c/lua (depend on name) function to get signals", "args": { - "value" : "arg" + "arg": "first argument" + } + } + }, + { + "api": "gps", + "info": "Low level binding which retrieve Satellite positionning values", + "init": { + "function": "c/lua (depend on name) function to initialize binding", + "args": { + "arg": "first argument" + } + }, + "get_signal": { + "function": "c/lua (depend on name) function to get signals", + "args": { + "arg": "first argument" + } + } + }, + { + "api": "mraa", + "info": "Low level binding which retrieve different values from several sensors like gyroscope, accelerometer, etc", + "init": { + "function": "c/lua (depend on name) function to initialize binding", + "args": { + "arg": "first argument" } }, - { - "label": "Sensors", - "api": "mraa", - "info": "Low level binding which retrieve different values from several sensors like gyroscope, accelerometer, etc", - "callback": "c function to subscribe on signals", - "lua": "or a lua function to subscribe on signals", + "get_signal": { + "function": "c/lua (depend on name) function to get signals", "args": { - "sensor" : "eg" + "arg": "first argument" } - }] - }] + } + } + ] } -- cgit 1.2.3-korg