You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
569 B
26 lines
569 B
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;
|
|
}
|
|
} |