This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Creating event scripts
#7
Hi Roger,

Make one event based script and put it to the TAG for example "Read Request" and turn on the execute read checkbox just once for this single script (;

Add this script in it:

Code:
-- only reply to group read requests
if event.type == 'groupread' then
 obj = grp.find(event.dst)
    -- object found and has datatype set
 if obj and obj.decoded then
   grp.response(event.dst, obj.value, obj.datatype)
 end
end

With mass edit you can add the TAG ''Read Request" to all your object and you are done. 

BR,

Erwin van der Zwart
Reply


Messages In This Thread
Creating event scripts - by rocfusion - 25.06.2016, 17:46
RE: Creating event scripts - by mlaudren - 28.06.2016, 12:49
RE: Creating event scripts - by admin - 28.06.2016, 13:50
RE: Creating event scripts - by rocfusion - 28.06.2016, 14:22
RE: Creating event scripts - by rocfusion - 28.06.2016, 15:06
RE: Creating event scripts - by Erwin van der Zwart - 28.06.2016, 15:13

Forum Jump: