mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-16 00:00:02 +01:00
29 lines
359 B
Lua
29 lines
359 B
Lua
|
function prepare()
|
||
|
print("Preparing test_hook")
|
||
|
|
||
|
my_global_var = 1337
|
||
|
end
|
||
|
|
||
|
|
||
|
function start()
|
||
|
print("Starting test_hook")
|
||
|
|
||
|
print("Global var: ", my_global_var)
|
||
|
end
|
||
|
|
||
|
|
||
|
function stop()
|
||
|
print("Stopping test_hook")
|
||
|
end
|
||
|
|
||
|
|
||
|
function process(data)
|
||
|
print("Process test_hook")
|
||
|
printf("Test data: ", data)
|
||
|
end
|
||
|
|
||
|
|
||
|
function periodic()
|
||
|
print("Periodic test_hook")
|
||
|
end
|