完善指令构建委托封装
This commit is contained in:
parent
0a3b37d80d
commit
d35882bf72
@ -624,7 +624,7 @@ namespace JiShe.CollectBus.ScheduledMeterReading
|
||||
{
|
||||
if (TelemetryPacketBuilder.AFNHandlers.TryGetValue(tempItem, out var handler))
|
||||
{
|
||||
handler(ammeter.FocusAddress, fn, ammeter.MeteringCode);
|
||||
dataInfos = handler(ammeter.FocusAddress, fn, ammeter.MeteringCode);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -633,8 +633,6 @@ namespace JiShe.CollectBus.ScheduledMeterReading
|
||||
}
|
||||
//TODO:特殊表
|
||||
|
||||
|
||||
|
||||
if (dataInfos == null || dataInfos.Length <= 0)
|
||||
{
|
||||
_logger.LogWarning($"{nameof(CreatePublishTask)} 集中器{ammeter.FocusAddress}的电表{ammeter.Name}采集项{tempItem}未能正确获取报文。");
|
||||
|
||||
@ -22,7 +22,7 @@ namespace JiShe.CollectBus.Common.BuildSendDatas
|
||||
/// <param name="address"></param>
|
||||
/// <param name="fn"></param>
|
||||
/// <param name="pn"></param>
|
||||
public delegate void AFNDelegate(string address, int fn, int pn = 0);
|
||||
public delegate byte[] AFNDelegate(string address, int fn, int pn = 0);
|
||||
|
||||
/// <summary>
|
||||
/// 编码与方法的映射表
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user