|
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
- namespace BPASmartClient.MorkCL.Server
- {
- /// <summary>
- /// 压力锅服务类
- /// </summary>
- internal class PressureCookerServer : PressureCookerSet, IModbus
- {
- public void Init(string IP = "", int Port = 502, string PortName = "")
- {
- MyModbus = new ModbusTcp();
- MyModbus.WithModbusTcp(IP, Port).UseConnected(() =>
- {
- TaskManage.GetInstance.StartLong(new Action(() =>
- {
-
- Thread.Sleep(10);
- }), $"压力锅服务-{IP}", true);
- });
- }
- }
- }
|