13.05.2021, 09:53
Modify the sendobjvalue function in bim-iot library and do a full script restart via disable/enable:
Code:
function sendobjvalue(obj)
local data = json.encode({
Type = 'NotificationPackage',
Item = {
Name = obj.name,
State = encodevalue(obj.value, obj.dtype),
Type = obj.dtype,
Editable = 2, -- allow read/write
Link = ''
},
TimeStamp = timestamp()
})
wsclient:send(data)
end