diff options
author | Fulup Ar Foll <fulup@iot.bzh> | 2017-08-23 01:00:20 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-12-13 15:01:57 +0100 |
commit | 4921883434749752ac82a0cbab8e6e57120800c5 (patch) | |
tree | c60d2919e1c6941e95931231bf5f75720f9c959d /conf.d/project/json.d/onload-daemon-sample.json | |
parent | 1abf8567328fc22b66f56782ea2061dae5a73d65 (diff) |
Restore Basic HTML5 testing Scenario as a Standalone Controller
Diffstat (limited to 'conf.d/project/json.d/onload-daemon-sample.json')
-rw-r--r-- | conf.d/project/json.d/onload-daemon-sample.json | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/conf.d/project/json.d/onload-daemon-sample.json b/conf.d/project/json.d/onload-daemon-sample.json new file mode 100644 index 0000000..cb6ca55 --- /dev/null +++ b/conf.d/project/json.d/onload-daemon-sample.json @@ -0,0 +1,69 @@ +{ + "$schema": "ToBeDone", + "metadata": { + "label": "sample-standalone-control", + "info": "Minimal Standalone Controller Config", + "name": "afb-sample-controller", + "version": "1.0" + }, + "onload": [{ + "label": "onload-default", + "info": "onload initialisation config", + "actions": + { + "label": "control-init", + "lua": "_Sample_Controller_Init", + "args": { + "xxxx": 1234, + "yyyy": "Bien le bonjours à vous", + "zzzz": "simple-evt" + } + } + }], + "controls": + [ + { + "label": "Button-Happy", + "actions": { + "label": "Action Happy", + "lua": "_Button_Happy", + "args": { + "button": 5678 + } + } + }, { + "label": "Button-UnHappy", + "actions": { + "label": "Action Unhappy", + "lua": "_Button_UnHappy", + "args": { + "button": "abcd" + } + } + } + ], + "events": + [ + { + "label": "Event1", + "actions": { + "label": "Action Event 1", + "lua": "_Event_Received", + "args": { + "evtname": "xxx" + } + } + }, + { + "label": "Event2", + "actions": { + "label": "Action Event 2", + "lua": "_Event_Received", + "args": { + "evtname": "yyy" + } + } + } + ] +} + |