///<summary> ///Constructor. ///</summary> internal GXDLMSSettings(bool isServer) { UseCustomChallenge = false; StartingBlockIndex = BlockIndex = 1; DLMSVersion = 6; InvokeID = 0x1; Priority = Priority.High; ServiceClass = ServiceClass.UnConfirmed; MaxReceivePDUSize = DefaultMaxReceivePduSize; Server = isServer; Objects = new GXDLMSObjectCollection(); Limits = new GXDLMSLimits(); if (isServer) { LnSettings = new GXDLMSLNSettings(new byte[] { 0x00, 0x7C, 0x1F }); } else { LnSettings = new GXDLMSLNSettings(new byte[] { 0x00, 0x7E, 0x1F }); } SnSettings = new GXDLMSSNSettings(new byte[] { 0x1C, 0x03, 0x20 }); ResetFrameSequence(); }
public void CopyTo(GXDLMSSNSettings target) { target.ConformanceBlock = this.ConformanceBlock; }
///<summary> ///Constructor. ///</summary> internal GXDLMSSettings(bool server) { UseCustomChallenge = false; StartingBlockIndex = BlockIndex = 1; DLMSVersion = 6; InvokeID = 0x1; Priority = Priority.High; ServiceClass = ServiceClass.Confirmed; MaxServerPDUSize = MaxPduSize = DefaultMaxReceivePduSize; IsServer = server; Objects = new GXDLMSObjectCollection(); Limits = new GXDLMSLimits(); LnSettings = new GXDLMSLNSettings(new byte[] { 0x00, 0xFE, 0x1F }); SnSettings = new GXDLMSSNSettings(new byte[] { 0x1C, 0x03, 0x20 }); ResetFrameSequence(); }