/// <summary> /// Retrieves the String representation of the element in the array of bytes </summary> /// <param name="data"> array of bytes containing data result from a dlms-get </param> /// <returns> A Strig that represents the element in the data </returns> /// <exception cref="DlmsException"> </exception> public static string getString(byte[] data) { verify(data); DlmsType type = DlmsType.fromTag(data[0]); return(DlmsParser.getStringValue(type, getPayload(type, data))); }
/// <summary> /// Retrieves the String representation of the element in the array of bytes </summary> /// <param name="type"> the DlmsType of the byte array </param> /// <param name="data"> array of bytes containing data result from a dlms-get </param> /// <returns> A Strig that represents the element in the data </returns> /// <exception cref="DlmsException"> </exception> public static string getString(DlmsType type, byte[] payload) { return(DlmsParser.getStringValue(type, payload)); }