10.06.2021, 10:03
If I understand correctly you want the changed value to be sent back when it's changed from the dashboard. If so then modify the eventhandler function as follows:
Code:
function eventhandler(event)
if not wsclient then
return
end
local obj = objsbyid[ event.dstraw ]
if not obj then
return
end
obj.value = busdatatype.decode(event.datahex, obj.datatype)
sendobjvalue(obj)
end