public GXDLMSObjectCollection GetObjects()
{
GXLogWriter.WriteLog("--- Collecting objects. ---");
GXReplyData reply = new GXReplyData(){Peek = false};
try
{
ReadDataBlock(client.GetObjectsRequest(), "Collecting objects", 3, reply);
}
catch (Exception Ex)
{
throw new Exception("GetObjects failed. " + Ex.Message);
}
GXDLMSObjectCollection objs = client.ParseObjects(reply.Data, true);
//Update OBIS code description.
GXDLMSConverter c = new GXDLMSConverter();
c.UpdateOBISCodeInformation(objs);
GXLogWriter.WriteLog("--- Collecting " + objs.Count.ToString() + " objects. ---");
return objs;
}