07.09.2017, 13:42
(07.09.2017, 06:04)admin Wrote: 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.allHi,thank you very much if it works for me
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