mirror of
https://gitee.com/ThingsGateway/ThingsGateway.git
synced 2025-10-21 19:14:30 +08:00
10.6.29
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<Project>
|
||||
|
||||
<PropertyGroup>
|
||||
<PluginVersion>10.6.28</PluginVersion>
|
||||
<ProPluginVersion>10.6.28</ProPluginVersion>
|
||||
<PluginVersion>10.6.29</PluginVersion>
|
||||
<ProPluginVersion>10.6.29</ProPluginVersion>
|
||||
<AuthenticationVersion>2.1.8</AuthenticationVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
|
@@ -61,14 +61,14 @@ internal sealed class HeartbeatAndReceivePlugin : PluginBase, ITcpConnectedPlugi
|
||||
{
|
||||
return;//此处可判断,如果为服务器,则不用使用心跳。
|
||||
}
|
||||
|
||||
if (HeartbeatTime > 0)
|
||||
SendHeartbeat = true;
|
||||
HeartbeatTime = Math.Max(HeartbeatTime, 1000);
|
||||
|
||||
if (DtuId.IsNullOrWhiteSpace()) return;
|
||||
|
||||
if (client is ITcpClient tcpClient)
|
||||
{
|
||||
SendHeartbeat = true;
|
||||
await tcpClient.SendAsync(DtuIdByte).ConfigureAwait(false);
|
||||
|
||||
if (Task == null)
|
||||
|
@@ -51,7 +51,7 @@ public class PackHelper
|
||||
// 获取变量的位偏移量
|
||||
//if (item.DataType == DataTypeEnum.Boolean)
|
||||
item.Index = device.GetBitOffsetDefault(address);
|
||||
if (item.DataType == DataTypeEnum.Byte)
|
||||
if (item.DataType == DataTypeEnum.Byte&& !(item.ArrayLength>1))
|
||||
item.Index += (item.Index % 2 == 0) ? 1 : -1;
|
||||
}
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<Version>10.6.28</Version>
|
||||
<Version>10.6.29</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
Reference in New Issue
Block a user