using HybirdFrameworkCore.Autofac.Attribute; using HybirdFrameworkCore.Const; using HybirdFrameworkDriver.ModbusTcpMaster; namespace Service.Help.ElectricMeter.ElectricClient; [Scope] public class ElectricClient:ModbusTcpMaster { public ElectricClient() { ReadAction = BatchRead; Ip = ""; Port = 502; Duration = 1000; AutoReConnect = true; ByteSeq = EndingConst.ByteSeq.BA; WordSeq= EndingConst.WordSeq.CD; } private bool BatchRead(ModbusTcpMaster master) { return true; } }