User Documentation

Table Of Contents
Program development
System manual
2696790000/02/04.2020
34
Global variable Default value Description
starepPathTmp /tmp/
Directory where the files of
the status report are stored
maxStarepCount 5
Number of stored status re-
ports
autostart true
Defines whether or not the
programs are to be run im-
mediately after the control is
started
autostartTimeout 5
Time in which the autostart
can be canceled [s]
Each DeviceServiceItem can export configuration variables or use configu-
ration variables exported by other DeviceServiceItem. Variables are ex-
ported by adding them to the global variables variable:
variables = {
someVar = 12,
otherVar = 'text'
}
Example file example.item.ex:
item = {
 name = "example"
variables ={
}
defaultvariables = {
}
---------TESTTRANSITION-----------------
testtransition = function(transition)
--Init DeviceService--
if transition == "Init DeviceService" then
return true
--Exit DeviceService--
elseif transition == "Exit DeviceService" then
return true
--Init Controller--
elseif transition == "Init Controller" then
return true
--Exit Controller--
elseif transition == "Exit Controller" then
return true
--Start Applications--
elseif transition == "Start Applications" then
 return true
--Stop Applications--
elseif transition == "Stop Applications" then
return true
end
return false
end
, --- DOTRANSITION ---------------------------
dotransition = function(transition, step)
--Init DeviceService
if transition == "Init DeviceService" then
if step == 1 then
elseif step == 2 then
elseif step == 3 then
elseif step == 4 then
elseif step == 5 then
elseif step == 6 then
elseif step == 7 then
elseif step == 8 then