mirror of
https://gitee.com/ThingsGateway/ThingsGateway.git
synced 2025-10-22 11:33:07 +08:00
build: 10.8.24
fix: 变量离线后再次上线,如果值不变,会导致在线状态不刷新 fix: s7离线恢复时,可能触发多次协议握手导致异常
This commit is contained in:
@@ -15,7 +15,7 @@ namespace ThingsGateway.Foundation;
|
||||
/// <summary>
|
||||
/// 协议设备接口
|
||||
/// </summary>
|
||||
public interface IDevice : IDisposable
|
||||
public interface IDevice : IDisposable, IDisposableObject
|
||||
{
|
||||
#region 属性
|
||||
|
||||
@@ -61,6 +61,7 @@ public interface IDevice : IDisposable
|
||||
/// 字符串翻转
|
||||
/// </summary>
|
||||
bool IsStringReverseByteWord { get; set; }
|
||||
bool AutoConnect { get; }
|
||||
|
||||
#endregion 属性
|
||||
|
||||
@@ -467,4 +468,5 @@ public interface IDevice : IDisposable
|
||||
/// <param name="deviceLog">单独设备日志</param>
|
||||
void InitChannel(IChannel channel, ILog? deviceLog = null);
|
||||
ValueTask<OperResult<byte[]>> ReadAsync(object state, CancellationToken cancellationToken = default);
|
||||
Task ConnectAsync(CancellationToken token);
|
||||
}
|
||||
|
Reference in New Issue
Block a user