Delete characters

i want delete of the first twelve characters received from a UDP network message?
in the beginning of the network message, the date and time are indicated, I do not want forward this information.
I just want to recover the information that is after the date and time.

example UDP network message received:
20_06_20 12:30:02 alarm triggering input 1

I wish to simply forward or use:
alarm trigger input 1

thanks for your return

You can add a function node that calls substr

msg.payload = msg.payload.substr(18);
return msg;


Probably also possible in a change node with JSONata

thanks for your help, it works perfectly

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