{
"id": "http://iot.bzh/download/public/schema/json/ctl-schema.json#",
"$schema": "http://iot.bzh/download/public/schema/json/ctl-schema.json#",
"metadata": {
"uid": "Test",
"version": "1.0",
"api": "test",
"info": "Configuration to test an emulated api",
"require": [
"low-can"
]
},
"onload": {
"uid": "launch_all_tests",
"info": "Launch all the tests",
"action": "lua://AFT#_launch_test",
"args": {
"trace": "low-can",
"files": "mapi_tests.lua"
}
},
"mapis": [{
"uid": "low-can",
"info": "Faked low-can API",
"libs": "mapi_low-can.lua",
"verbs": [
{
"uid": "subscribe",
"info": "Subscribe to CAN signals events",
"action": "lua://low-can#_subscribe"
},
{
"uid": "unsubscribe",
"info": "Unsubscribe previously suscribed signals.",
"action": "lua://low-can#_unsubscribe"
},
{
"uid": "get",
"info": "get a current value of CAN message",
"action": "lua://low-can#_get"
},
{
"uid": "list",
"info": "get a supported CAN message list",
"action": "lua://low-can#_list"
},
{
"uid": "auth",
"info": "Authenticate session to be raise Level Of Assurance.",
"action": "lua://low-can#_auth"
},
{
"uid": "write",
"info": "Write a CAN messages to the CAN bus.",
"action": "lua://low-can#_write"
}
]
}]
}