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