Hello , is there a node or a method to transform hex to text like this :
Thanks
Chris
Have a look at NodeJS Buffers, especially the Buffer.from(string[, encoding])
method:
You can use a function node for that.
thanks for your answer
I'm a newbie
I made a edit function node like this and the result is the same as the entry
'hexa' is no good what is the term I've to put to have '23.00/38.00/161.00'
Assuming you pass the hex-string as msg.payload
the following could work:
msg.payload = Buffer.from(msg.payload, 'hex').toString();
return msg;
You were missing the Buffer part from the link I gave you.
thank you
it is working now
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.