If you use the string split()
function to extract the string “4142434445” out of your data, it’s still the same string of numbers, but without the prefix and quotes…
In your case, you need to convert it into the ascii characters represented by the hex digits, taken 2 at a time from the string (i.e. “ABCDE”): In a function node, you can try this javascript code:
var hexes = msg.payload.split('"')[1];
var ascii = new Buffer(hexes, 'hex').toString();