04.07.2017, 17:15
(04.07.2017, 10:04)admin Wrote: Not sure about that, though there will be a new function grp.checkvalue(alias, value [, delta]) which tells whether the value should be sent or not. It can be used for your task (you can create your own wrapper function and put it into common functions):
Code:value = 50
if grp.checkvalue('1/4/1', value) then
grp.write('1/2/1', value)
end
I am not asking to add a new function just modify the exist ( grp.checkwrite, grp.checkresponse, grp.checkupdate ). I think in terms of performance a wrapper will be slower. Plus I wouldn't need to use grp.checkwrite since a double comparison is made.
thanks,
Roger