55
<? for j = 1, size do ?>
<td><? write(i * j) ?></td>
<? end ?>
</tr>
<? end ?>
</table>
</body>
</html>
Full Lua function reference manual is available at:
http://openrb.com/docs/lua.htm
Object functions
Most functions use alias parameter either object group address or object name. (e.g. '1/1/1'
or 'My object')
Finding single/multiple objects
grp.find(alias)
Returns single object for given alias. Object value will be decoded if data type is set.
Returns nil when object cannot be found, otherwise it returns table with the following
items:
• address object group address
• updatetime latest update time in UNIX timestamp format. Use os.date() to
convert to readable date formats
• name unique object name
• datatype object data type
• decoded set to true when decoded value is available
• value decoded object value
grp.tag(tags [, mode])
Returns a table containing objects with given tag. Tags parameter can be either table or
a string. Mode parameter can be either 'or' (default returns objects that have any of
given tags) or 'and' (return objects that have all of given tags). You can use object
functions on the returned table.
grp.dpt(dpt, [strict])
Find all objects with matching data type. Dpt can be either a string
dt table (dt.bool, dt.scale, dt.uint32). For example, if dpt is
set to dt.uint8, in normal mode all sub-datatypes like dt.scale and dt.angle will be