Value format don't accept readUint8

Hello All,
I have an issue with Format value of an edit text node. The edit text node receive a buffer of 8 bytes from an UDP port.
I would like to display the first field of the buffer. to do that I set Format Value of the Edit Text Node with:


That doesn't work in the edit text node. but in a function that's work fine:

var value = msg.payload.readUInt8();
var newmsg = { payload: value, topic: "first" };
return newmsg;

What am I doing wrong ? Could you please help me ?

The value field only accepts a msg path, not a javascript method.
You would need to use your function before the ui-text node to and then use {{value}} or {{msg.payload}}.

Ha damn!
Thanks for your answer

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.