summaryrefslogtreecommitdiffstats
path: root/conf.d/project/etc/sig-sources.json
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-09-08 19:03:21 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-12-14 11:00:25 +0100
commitbdf2d19cf8a3d6005456508ca52dba74cd9c103f (patch)
treec53d5a5bbf411b15123b9e5989fca26a25dcf844 /conf.d/project/etc/sig-sources.json
parent19bc13783a7451c81848ea132614a8df11c7740a (diff)
Reformat configuration schema
Change-Id: I9550b51bb343c683e84de7200ec6a73ce1dcd71a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'conf.d/project/etc/sig-sources.json')
-rw-r--r--conf.d/project/etc/sig-sources.json67
1 files changed, 41 insertions, 26 deletions
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"
}
- }]
- }]
+ }
+ }
+ ]
}