10.06.2021, 07:53
Maybe the payload format must be different. As I've said ask them to check the websocket communication log. As I don't have any tools to test this further I cannot help without any extra information from their side.
You can log what is being sent over the websocket by modifying the sendobjvalue function in the user library. Make sure to do a full script restart via disable/enable after changing the library.
You can log what is being sent over the websocket by modifying the sendobjvalue function in the user library. Make sure to do a full script restart via disable/enable after changing the library.
Code:
function sendobjvalue(obj)
local data = json.encode({
payload = {
Type = 'NotificationPackage',
Item = {
Name = obj.name,
State = encodevalue(obj.value, obj.dtype),
Type = obj.dtype,
Editable = obj.editable,
Link = ''
},
TimeStamp = timestamp()
}
})
log(data)
wsclient:send(data)
end