mirror of
https://github.com/zhaopeiym/IoTClient
synced 2025-10-26 22:15:44 +08:00
24 lines
527 B
C#
24 lines
527 B
C#
using IoTServer.Common;
|
|
using IoTServer.Servers.ModBus;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Xunit;
|
|
|
|
namespace IoTClient.Tests.Server_tests
|
|
{
|
|
public class ModBusTcpServer_test
|
|
{
|
|
[Fact]
|
|
public async Task StartAsync()
|
|
{
|
|
ModBusTcpServer server = new ModBusTcpServer("LocalIP".GetConfig(), int.Parse("LocalPort".GetConfig()));
|
|
|
|
server.Start();
|
|
|
|
await Task.Delay(1000 * 1000);
|
|
}
|
|
}
|
|
}
|