It should be as simple as that. You certainly do not want to be adding extra spaces and backslashes.
I couldn’t say why it is not working for you. Have you used Mqtt explorer or similar to see what is actually published?
It should be as simple as that. You certainly do not want to be adding extra spaces and backslashes.
I couldn’t say why it is not working for you. Have you used Mqtt explorer or similar to see what is actually published?