using OpcUaHelper; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TeamAAS_VP.Enums; using TouchSocket.Sockets; namespace TeamAAS_VP.Interfaces { public interface IPlc : IDisposable { Guid Id { get;} /// /// 编号 /// int Index { get; set; } CommunicationType CommunicationType { get;} string EndpointUrl { get; } string Name { get; } OpcUaClient OpcUaClient { get; } bool IsConnected { get; } event Action ConnectChangedEvent; void Connect(); Task ConnectAsync(); void Disconnect(); } }