Gurux.DLMS.Objects.GXDLMSClock.PresetAdjustingTime C# (CSharp) Method

PresetAdjustingTime() public method

Presets the time to a new value (preset_time) and defines a validity_interval within which the new time can be activated.
public PresetAdjustingTime ( Gurux.DLMS.GXDLMSClient client, System.DateTime presetTime, System.DateTime validityIntervalStart, System.DateTime validityIntervalEnd ) : byte[][]
client Gurux.DLMS.GXDLMSClient
presetTime System.DateTime
validityIntervalStart System.DateTime
validityIntervalEnd System.DateTime
return byte[][]
        public byte[][] PresetAdjustingTime(GXDLMSClient client, DateTime presetTime, DateTime validityIntervalStart, DateTime validityIntervalEnd)
        {
            GXByteBuffer buff = new GXByteBuffer();
            buff.Add((byte)DataType.Structure);
            buff.Add((byte)3);
            GXCommon.SetData(client.Settings, buff, DataType.OctetString, presetTime);
            GXCommon.SetData(client.Settings, buff, DataType.OctetString, validityIntervalStart);
            GXCommon.SetData(client.Settings, buff, DataType.OctetString, validityIntervalEnd);
            return client.Method(this, 5, buff.Array(), DataType.Array);
        }