Can anyone explain how adding the msg.payload object to a variable works in ui builder. i read through the documenation and code, and i still hae no idea.
I made a very simple template that reduces the noise.
Using that template, define your variables here:
data: {
msg: '',
},
When a msg arrives, you can assign it here:
uibuilder.onChange('msg', function(msg) {
vueApp.msg = msg;
});
eg if you define temperature
in data and you receive a msg msg.payload.temperature
, you can use vueApp.temperature = msg.payload.temperature
Hey! thanks alot a bit better with out the noice yea.
hey, can u please give me this example
Click the link in the post above.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.