1
0
mirror of https://github.com/zhaopeiym/IoTClient synced 2025-10-26 22:15:44 +08:00

重构 ModbusClient

This commit is contained in:
BennyZhao
2021-01-21 14:08:51 +08:00
parent 8c365d5190
commit ed269f55b2
32 changed files with 2091 additions and 2175 deletions

View File

@@ -1,14 +1,14 @@
using IoTServer.Common;
using IoTServer.Servers.ModBus;
using IoTServer.Servers.Modbus;
using IoTServer.Servers.PLC;
using System.Threading.Tasks;
using Xunit;
namespace IoTClient.Tests.Server_tests
{
public class ModBusTcpServer_test
public class ModbusTcpServer_test
{
public ModBusTcpServer_test()
public ModbusTcpServer_test()
{
DataPersist.LoadData();
}
@@ -16,7 +16,7 @@ namespace IoTClient.Tests.Server_tests
[Fact]
public async Task StartAsync()
{
ModBusTcpServer server = new ModBusTcpServer(int.Parse("LocalPort".GetConfig()));
ModbusTcpServer server = new ModbusTcpServer(int.Parse("LocalPort".GetConfig()));
server.Start();