Parcourir la source

Fix GPIO capabilities JSON literal escaping

SybexXx il y a 1 jour
Parent
commit
f52dc18400
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      code/components/jomjol_controlGPIO/server_GPIO.cpp

+ 1 - 1
code/components/jomjol_controlGPIO/server_GPIO.cpp

@@ -755,7 +755,7 @@ esp_err_t GpioHandler::handleHttpRequest(httpd_req_t *req)
                 return ESP_OK;
             }
 
-            std::string response = "{\\"profile\\":\\"";
+            std::string response = "{\"profile\":\"";
             response += profile->name;
             response += "\\",\\"maxChannels\\":";
             response += std::to_string(profile->maxUserChannels);