Logic Machine Forum
Read request - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Read request (/showthread.php?tid=5691)



Read request - stonecroft - 21.10.2024

Hello.

I somewhere have seen a solution for LM to answer read request but I'm not able to find it on the forum.
Can somebody please help?


RE: Read request - kike - 21.10.2024

Just create a tag and tag the object you want to readresponse

Then create an event logic with this:


evento = event.type


if evento == 'groupread' then

grp.response(event.dst, grp.getvalue(event.dst) )

end


RE: Read request - stonecroft - 24.10.2024

Hello.

I don't get it to work.
I have created a event script for tag readresponse and tag my objekt with the same tag but nothing answer read request from ets.


RE: Read request - Daniel - 24.10.2024

Make sure to set event script to Execute on group read:


RE: Read request - stonecroft - 28.10.2024

Of course, stupid mistake!
Now it works!
Thanks