ICommunication.cs
856 Bytes
using DataAcquisition.Models;
using HHECS.BllModel;
namespace DataAcquisition.Common.Communications
{
public interface ICommunication
{
int CommunicationId { get; set; }
/// <summary>
/// IP 地址
/// </summary>
string IpAddress { get; }
/// <summary>
/// 连接服务
/// </summary>
/// <returns></returns>
BllResult ConnectServer();
/// <summary>
/// 断开连接
/// </summary>
/// <returns></returns>
BllResult ConnectClose();
BllResult Read(IEnumerable<EquipmentProperty> equipmentProperties);
BllResult Read(EquipmentProperty equipmentProperty);
BllResult Write(IEnumerable<EquipmentProperty> equipmentProperties);
BllResult Write(EquipmentProperty equipmentProperty);
}
}