21.10.2022, 06:26
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:
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
}
})