forked from daneos/lutango
17 lines
446 B
Lua
17 lines
446 B
Lua
local lut = require "lutango"
|
|
lut.log:set_log_level(lut.log.level.TRACE)
|
|
|
|
print("Attempting to access non-existent device")
|
|
local invalid = lut.DeviceProxy("non/existent/device")
|
|
|
|
local dp = lut.DeviceProxy(arg[1] or "sys/tg_test/1")
|
|
|
|
print("Attempting to write core function")
|
|
dp.get_attribute_list = 120
|
|
|
|
print("Attempting to write device command")
|
|
dp.SwitchStates = 0
|
|
|
|
print("Attempting to write read-only attribute")
|
|
dp.short_scalar_ro = 100
|