build: 10.8.24

fix: 变量离线后再次上线,如果值不变,会导致在线状态不刷新
fix: s7离线恢复时,可能触发多次协议握手导致异常
This commit is contained in:
Diego
2025-06-25 11:17:04 +08:00
parent 6510c3e289
commit c80e57a4e8
82 changed files with 380 additions and 396 deletions

View File

@@ -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);
}