新增http、mqtt运行库,实现mqtt功能, 新增spdlog

This commit is contained in:
lixiaoyuan
2025-09-01 20:08:40 +08:00
parent e0b64a20c4
commit 94e467b65e
245 changed files with 54182 additions and 117 deletions

View File

@@ -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.");
}
}