Untitled
unknown
plain_text
a year ago
1.0 kB
4
Indexable
Never
public byte[][] GenerateDataNotificationConfirmMessages(DateTime time, byte[] data, uint InvokeId) { byte[][] reply; if (UseLogicalNameReferencing) { GXDLMSLNParameters p = new GXDLMSLNParameters(Settings, 0, Command.DataNotificationConfirm, 0, null, new GXByteBuffer(data), 0xff, Command.None); p.time = time; p.InvokeId = InvokeId; reply = GXDLMS.GetLnConfirmMessages(p); } else { GXDLMSSNParameters p = new GXDLMSSNParameters(Settings, Command.DataNotificationConfirm, 1, 0, new GXByteBuffer(data), null); reply = GXDLMS.GetSnMessages(p); } if ((Settings.ProposedConformance & Conformance.GeneralBlockTransfer) == 0 && reply.Length != 1) { throw new ArgumentException("Data is not fit to one PDU. Use general block transfer."); } return reply; }