Gurux.DLMS.GXDLMSConverter.UpdateOBISCodeInformation C# (CSharp) Méthode

UpdateOBISCodeInformation() public méthode

Update standard OBIS codes description and type if defined.
public UpdateOBISCodeInformation ( GXDLMSObject target ) : void
target Gurux.DLMS.Objects.GXDLMSObject COSEM object.
Résultat void
        public void UpdateOBISCodeInformation(GXDLMSObject target)
        {
            lock (codes)
            {
                if (codes.Count == 0)
                {
                    ReadStandardObisInfo(codes);
                }
                UpdateOBISCodeInfo(codes, target);
            }
        }

Same methods

GXDLMSConverter::UpdateOBISCodeInformation ( GXDLMSObjectCollection targets ) : void

Usage Example

 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;
 }
All Usage Examples Of Gurux.DLMS.GXDLMSConverter::UpdateOBISCodeInformation