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.

Push telegram not working on every object
#2
event.getvalue() returns Boolean for 1 bit object, not a number. So your comparison does not work and message is empty (nil). Use this instead:
Code:
value = event.getvalue()

if value then
  message = 'something is on'
else
  message = 'something is off'
end
Reply


Messages In This Thread
RE: Push telegram not working on every object - by admin - 25.10.2022, 12:43

Forum Jump: