Hexa to text node converter

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:

https://nodejs.org/dist/latest-v10.x/docs/api/buffer.html#buffer_class_method_buffer_from_string_encoding

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.

2 Likes

thank you
it is working now :slight_smile:

1 Like

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