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.

Mqtt broker app communication with local client event based script
#4
Code:
value = event.getvalue()

level = value and 255 or 0

payload = require('json').encode({
  level = level,
  duration = 1,
  targetid = 177,
  targettype = 1,
})

mqtt = require("mosquitto")
Reply


Messages In This Thread
RE: Mqtt broker app communication with local client event based script - by admin - 13.02.2023, 15:15

Forum Jump: