Browse Source

通讯库bug修改

reconfiguration
pry 4 months ago
parent
commit
ab5caff4f1
8 changed files with 11 additions and 9 deletions
  1. +1
    -1
      BPASmartClient.Business/BPASmartClient.Business.csproj
  2. +1
    -1
      BPASmartClient.FoodStationTest/BPASmartClient.FoodStationTest.csproj
  3. +1
    -1
      BPASmartClient.JXJFoodBigStation/BPASmartClient.JXJFoodBigStation.csproj
  4. +4
    -2
      BPASmartClient.MorkCL/Server/OtherServer.cs
  5. +1
    -1
      BPASmartClient.SmallBatchingSystem/BPASmartClient.SmallBatchingSystem.csproj
  6. +1
    -1
      DosingSystem/BPASmartClient.DosingSystem.csproj
  7. +1
    -1
      Test/Test.csproj
  8. +1
    -1
      阿里云IOT平台测试/阿里云IOT平台测试.csproj

+ 1
- 1
BPASmartClient.Business/BPASmartClient.Business.csproj View File

@@ -8,7 +8,7 @@

<ItemGroup>
<PackageReference Include="BPA.ApolloClient" Version="1.0.12" />
<PackageReference Include="BPA.Communication" Version="1.0.177" />
<PackageReference Include="BPA.Communication" Version="1.0.178" />
<PackageReference Include="BPA.Message" Version="1.0.86" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="6.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="6.0.0" />


+ 1
- 1
BPASmartClient.FoodStationTest/BPASmartClient.FoodStationTest.csproj View File

@@ -16,7 +16,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="BPA.Communication" Version="1.0.177" />
<PackageReference Include="BPA.Communication" Version="1.0.178" />
</ItemGroup>

<ItemGroup>


+ 1
- 1
BPASmartClient.JXJFoodBigStation/BPASmartClient.JXJFoodBigStation.csproj View File

@@ -17,7 +17,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="BPA.Communication" Version="1.0.177" />
<PackageReference Include="BPA.Communication" Version="1.0.178" />
</ItemGroup>

<ItemGroup>


+ 4
- 2
BPASmartClient.MorkCL/Server/OtherServer.cs View File

@@ -31,7 +31,7 @@ namespace BPASmartClient.MorkCL.Server
//{
// for (byte i = 0; i < s.Length; i++) BoxDetection[i] = s[i];
//});
MyModbus.SlaveAddress = 1;
MyModbus.Read<ushort>("LW630".ToModbusAdd()).OnSuccess(s =>
{
for (byte i = 0; i < 4; i++)
@@ -41,7 +41,7 @@ namespace BPASmartClient.MorkCL.Server
});
Thread.Sleep(250);
//myDevice.SlaveAddress = 2;
MyModbus.SlaveAddress = 2;
MyModbus.Read<float>("LW6".ToModbusAdd()).OnSuccess(s => { CurrentWeight = s.Content; });

Thread.Sleep(250);
@@ -95,6 +95,7 @@ namespace BPASmartClient.MorkCL.Server
{
//ModbusRtu weigher = (ModbusRtu)MyModbus;
//MyModbus.SlaveAddress = 2;
MyModbus.SlaveAddress = 2;
return MyModbus.Write<bool>("LB4".ToModbusAdd(), true).IsSuccess;
}
else
@@ -110,6 +111,7 @@ namespace BPASmartClient.MorkCL.Server
{
//ModbusRtu weigher = (ModbusRtu)MyModbus;
//weigher.SlaveAddress = 2;
MyModbus.SlaveAddress = 2;
return MyModbus.Write<bool>("LB3".ToModbusAdd(), true).IsSuccess;
}
else


+ 1
- 1
BPASmartClient.SmallBatchingSystem/BPASmartClient.SmallBatchingSystem.csproj View File

@@ -21,7 +21,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="BPA.Communication" Version="1.0.177" />
<PackageReference Include="BPA.Communication" Version="1.0.178" />
</ItemGroup>

<ItemGroup>


+ 1
- 1
DosingSystem/BPASmartClient.DosingSystem.csproj View File

@@ -20,7 +20,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="BPA.Communication" Version="1.0.177" />
<PackageReference Include="BPA.Communication" Version="1.0.178" />
<PackageReference Include="BPA.PahoMQ" Version="1.0.8">
<Aliases>aliyun</Aliases>
</PackageReference>


+ 1
- 1
Test/Test.csproj View File

@@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BPA.Communication" Version="1.0.177" />
<PackageReference Include="BPA.Communication" Version="1.0.178" />
<PackageReference Include="BPA.PahoMQ" Version="1.0.6" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>


+ 1
- 1
阿里云IOT平台测试/阿里云IOT平台测试.csproj View File

@@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BPA.Communication" Version="1.0.177" />
<PackageReference Include="BPA.Communication" Version="1.0.178" />
<PackageReference Include="BPA.PahoMQ" Version="1.0.8" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>


Loading…
Cancel
Save