RAW Command via TCP

Hi All,

I need to send RAW commands via TCP to a device.
The example would be: socat stdio tcp: and then the command ended by CRLF

using the function
msg.payload = "GetCommand 1234\r\n"
doesn't work.
I'm using the TCP request Node.

In addition, is there an easy way to remove the CRLF from the response? It is being sent at the beginning and at the end of every answer.

Thank you

Use a trim function to do that. Either in a function node or a change node using JSONata

You could also use a change node with a regex.