mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
新增http、mqtt运行库,实现mqtt功能, 新增spdlog
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "database/SQL.h"
|
||||
#include "common/fields.h"
|
||||
#include "app/Device.h"
|
||||
#include "common/Spdlogger.h"
|
||||
|
||||
|
||||
Station::Station() : id(0)
|
||||
@@ -71,7 +72,7 @@ void Station::setWorkMode(int modeId)
|
||||
Errcode err = DAO::exec(NULL, sql);
|
||||
if (err != Errcode::OK)
|
||||
{
|
||||
XLOGE() << "set station work mode failed.";
|
||||
spdlog::error("set station work mode failed.");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,6 +84,6 @@ void Station::setPolicy(int policyId)
|
||||
Errcode err = DAO::exec(NULL, sql);
|
||||
if (err != Errcode::OK)
|
||||
{
|
||||
XLOGE() << "set station policy failed.";
|
||||
spdlog::error("set station policy failed.");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user