mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-28 03:09:24 +08:00
实现服务端的QT应用界面
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user