aboutsummaryrefslogtreecommitdiffstats
path: root/data/onload-control-script.lua
diff options
context:
space:
mode:
authorfulup <fulup.arfoll@iot.bzh>2017-08-10 17:37:24 +0200
committerfulup <fulup.arfoll@iot.bzh>2017-08-10 17:37:24 +0200
commiteb6a78be524aaee70fca55b86a7b065763591178 (patch)
tree9db4e1e9f75ef18b90255a468ab5087e65bba5c3 /data/onload-control-script.lua
parent302d4bfcc49c69ea8251e1755ba3876555f680aa (diff)
Work in Progress
Diffstat (limited to 'data/onload-control-script.lua')
-rw-r--r--data/onload-control-script.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/data/onload-control-script.lua b/data/onload-control-script.lua
index ac316cd..f50bf7a 100644
--- a/data/onload-control-script.lua
+++ b/data/onload-control-script.lua
@@ -21,17 +21,17 @@
count=0
-- Adjust Volume function of vehicle speed
-function Adjust_Volume_Speed (speed_meters_second)
+function Adjust_Volume_Speed (request, speed_meters_second)
- AFB:notice("In Adjust_Volume_Speed")
+ AFB:notice("In Adjust_Volume_Speed speed=%d", speed_meters_second);
- print (string.format("***** Adjust_Volume_Speed speed=%d count=%d", speed_meters_second, count));
+ print (string.format("*****(From Lua) Adjust_Volume_Speed speed=%d count=%d", speed_meters_second, count));
-- compute volume
volume = speed_meters_second * 2
count=count+1
- AFB:success (1234, volume, count, 5678)
+ AFB:success (request, 1234, volume, count, 5678)
end