25.09.2019, 06:33
(20.09.2019, 19:40)Erwin van der Zwart Wrote: Hi,
Here is a simplified version (:
Code:function deleteGA(start, stop)
startID = knxlib.encodega(start)
stopID = knxlib.encodega(stop)
if stopID < startID then
log('Start has higher value than stop. Delete is not possible')
else
result = db:query('DELETE FROM objects WHERE ID BETWEEN ? AND ?', startID, stopID)
log(result .. ' address(es) within range is/are deleted')
end
end
deleteGA('26/0/0', '26/0/10')
deleteGA('26/0/51', '26/0/70')
BR,
Erwin
OK, that is a little more elegant.
Is there any place where one can find all these commands that are used for LM/SL? Like knxlib.encodega()? That would be really helpful to have a list of those, like we have already for the lua commands (https://openrb.com/docs/lua.htm).
There are 10 kinds of people in the world; those who can read binary and those who don't