mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-28 03:09:24 +08:00
实现HTTP服务架构
This commit is contained in:
@@ -11,7 +11,7 @@ std::shared_ptr<CommEntity> CommEntity::create(Fields& data)
|
||||
if (commType == "TCP")
|
||||
{
|
||||
auto entity = std::make_shared<TcpEntity>();
|
||||
entity->setHost(ip, port, isclient);
|
||||
entity->setAddr(ip, port, isclient);
|
||||
return entity;
|
||||
}
|
||||
else if (commType == "MODBUS")
|
||||
|
||||
Reference in New Issue
Block a user