Esempio n. 1
0
        /// <summary>
        /// Generates the raw data for the Get Response
        /// </summary>
        /// <returns>The Memory Stream containing the raw data</returns>
        //  Revision History
        //  MM/DD/YY who Version Issue# Description
        //  -------- --- ------- ------ ---------------------------------------
        //  02/04/12 RCG 2.70.63 N/A    Created

        protected override MemoryStream GenerateRawData()
        {
            MemoryStream     DataStream = base.GenerateRawData();
            DLMSBinaryWriter DataWriter = new DLMSBinaryWriter(DataStream);

            DataWriter.WriteLength(m_Result.Count);

            foreach (GetDataResult CurrentResult in m_Result)
            {
                DataWriter.Write(CurrentResult.Data);
            }

            return(DataStream);
        }
Esempio n. 2
0
        /// <summary>
        /// Generates the raw data for the Get Request
        /// </summary>
        /// <returns>The Memory stream containing the raw data</returns>
        //  Revision History
        //  MM/DD/YY who Version Issue# Description
        //  -------- --- ------- ------ ---------------------------------------
        //  02/04/12 RCG 2.70.63 N/A    Created

        protected override MemoryStream GenerateRawData()
        {
            MemoryStream     DataStream = base.GenerateRawData();
            DLMSBinaryWriter DataWriter = new DLMSBinaryWriter(DataStream);

            // Write the length
            DataWriter.WriteLength(m_AttributeDescriptorList.Count);

            // Write the entries
            foreach (CosemAttributeDescriptorWithSelection CurrentDescriptor in m_AttributeDescriptorList)
            {
                DataWriter.Write(CurrentDescriptor.Data);
            }

            return(DataStream);
        }