Hi everyone, I’m facing an issue with sending a long string command through MQTT that requires double backward slashes. I’m trying to send the following command:
{
“command”: “C:\bat\screensaver.bat”,
“args”: “”,
“path”: “C:\bat\”,
“user”: “”,
“visible”: false,
“fallback”: false
}
However, when I check the received message using MQTTlens, it only shows single backward slashes:
{
“command”: “C:\bat\screensaver.bat”,
“args”: “”,
“path”: “C:\bat”,
“user”: “”,
“visible”: false,
“fallback”: false
}
I’ve tried using three backward slashes, but it still only sends one. I’m using OpenHAB 2.5 and MQTT1. Does anyone know how to properly format the string to ensure the double backward slashes are preserved? Any help would be greatly appreciated!