Make command manager output proper json

This commit is contained in:
Lorow
2025-05-13 22:53:51 +02:00
parent ab0b1db432
commit 0635bbd5c2
2 changed files with 13 additions and 8 deletions

View File

@@ -127,7 +127,7 @@ struct CameraConfig_t : BaseConfigModel
// save them under an indexed name and load them as such.
struct WiFiConfig_t : BaseConfigModel
{
// default construcotr used for loading
// default constructor used for loading
WiFiConfig_t(Preferences *pref) : BaseConfigModel(pref) {}
WiFiConfig_t(
@@ -284,7 +284,7 @@ public:
}
return Helpers::format_string(
"%s, %s, %s, networks: [%s], %s, %s",
"{%s, %s, %s, \"networks\": [%s], %s, %s}",
this->device.toRepresentation().c_str(),
this->mdns.toRepresentation().c_str(),
this->camera.toRepresentation().c_str(),