实现服务端的QT应用界面

This commit is contained in:
lixiaoyuan
2025-09-24 19:06:31 +08:00
parent 0abb4e54f1
commit d7888c2be4
26 changed files with 435 additions and 173 deletions

View File

@@ -47,8 +47,7 @@ bool Config::init(std::string filename)
JSON::read(json, "token", option.http.useToken);
JSON::read(json, "port", option.http.port);
JSON::read(json, "encryption", option.http.encryption);
JSON::read(json, "encryptKey", option.http.encryptKey);
}
JSON::read(json, "encryptKey", option.http.encryptKey); }
else
{
spdlog::error("[config] parse http failed: not found.");
@@ -60,6 +59,7 @@ bool Config::init(std::string filename)
JSON::read(json, "host", option.mqtt.host);
JSON::read(json, "username", option.mqtt.username);
JSON::read(json, "password", option.mqtt.password);
JSON::read(json, "interval", option.mqtt.interval);
}
else
{