lutango/tests/read_attrs.lua

16 lines
305 B
Lua

local lut = require "lutango"
lut.log:set_log_level(lut.log.level.WARNING)
dp = lut.DeviceProxy(arg[1])
al = dp:get_attribute_list()
for _,v in ipairs(al) do
if v ~= "no_value" and v ~= "throw_exception" then
io.write(v.." = ")
print(dp[v])
else
print("-- Can't handle that yet: "..v)
end
end