///<summary> ///Get float value from DLMS data. ///</summary> ///<param name="buff"> ///Received DLMS data. ///</param> ///<param name="info"> ///Data info. ///</param> ///<returns> ///Parsed float value. ///</returns> private static object Getfloat(GXByteBuffer buff, GXDataInfo info) { // If there is not enough data available. if (buff.Size - buff.Position < 4) { info.Complete = false; return null; } float value = buff.GetFloat(); if (info.xml != null) { GXByteBuffer tmp = new GXByteBuffer(); SetData(null, tmp, DataType.Float32, value); info.xml.AppendLine(info.xml.GetDataType(info.Type), "Value", GXCommon.ToHex(tmp.Data, false, 1, tmp.Size - 1)); } return value; }