mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
实现策略配置功能
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "common/Logger.h"
|
||||
#include "common/Utils.h"
|
||||
#include "protocol/Communicator.h"
|
||||
#include "protocol/CommEntity.h"
|
||||
#include "common/JsonN.h"
|
||||
|
||||
//int DeviceEntity::getAttrInt(std::string key)
|
||||
@@ -56,7 +56,7 @@ int Device::startComm()
|
||||
// 创建新的通讯
|
||||
if (!commEntity)
|
||||
{
|
||||
commEntity = Communicator::createEntity(attrs);
|
||||
commEntity = CommEntity::create(attrs);
|
||||
if (!commEntity) { return -1; }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user