iotgateway/Plugins/PluginInterface/IDriver.cs

19 lines
550 B
C#
Raw Normal View History

2021-12-12 06:55:48 +00:00
using System;
namespace PluginInterface
{
2022-04-13 09:01:24 +00:00
public interface IDriver : IDisposable
2021-12-12 06:55:48 +00:00
{
public Guid DeviceId { get; }
public bool IsConnected { get; }
public int Timeout { get; }
2021-12-12 06:55:48 +00:00
public uint MinPeriod { get; }
public bool Connect();
public bool Close();
2022-04-13 09:01:24 +00:00
//标准数据读取
2021-12-12 06:55:48 +00:00
public DriverReturnValueModel Read(DriverAddressIoArgModel Ioarg);
2022-04-13 09:01:24 +00:00
//Rpc写入
public Task<RpcResponse> WriteAsync(string RequestId, string Method, DriverAddressIoArgModel Ioarg);
2021-12-12 06:55:48 +00:00
}
}