How to insert a quote in a msg.payload to write in a file

Also if you use single quotes to delimit a string then you can use double quotes directly inside, so
msg.payload = ' "text" '

1 Like