Hello, friends. I am creating a plugin to control a relay via TCP. When the relay is turned on, it sends the string “on”, and when it is turned off, it sends the string “off”. I have an Image Button that represents the behavior of this relay. When the relay is “on”, a lit bulb image should appear. When the relay is “off”, an unlit bulb icon should appear. In the onPool() function of my plugin, I am correctly receiving the string containing the relay state (“on” or “off”). I would like to know how I can change the image on my Image Button when the “on” or “off” state is received by the onPool() function. Thank you
Hi Danilo,
I think here it is good explaind how it works (DataTrigger). I recommend watching both videos in full.
and here:
1 Like
Great, my friend. I’ll do. Thanks for your reply.