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.

Common script does not work in the way I want
#2
Check if you have duplicate function somewhere else.

You don't have to specify the address manually, use event.dst instead. This way you can map a single event script to a tag instead of creating many event scripts with the same functionality.

Don't create JSON strings manually, use JSON library:
Code:
local payload = require('json').encode({
  groupAddress = add,
  value = {
    [ dptString ] = value
  }
})
Reply


Messages In This Thread
RE: Common script does not work in the way I want - by admin - 21.10.2022, 06:26

Forum Jump: