07.09.2017, 06:04
In most cases you don't need to access internal database directly but use provided functions instead. To get all objects you can use grp.all(): http://openrb.com/docs/lua.htm#grp.all
Here's an example that logs group address, name and current value for first 5 objects:
Here's an example that logs group address, name and current value for first 5 objects:
Code:
objects = grp.all()
for i, object in ipairs(objects) do
log(object.address, object.name, object.value)
if i == 5 then
break
end
end