/// <summary> /// Creates a Register class (class_id=2) object </summary> /// <param name="obis"> the object obis </param> public RegisterObject(Obis obis) { this.obis = obis; }
/// <summary> /// Creates a descriptor for a DLMS object </summary> /// <param name="classId"> the object class_id </param> /// <param name="index"> the index of the attribute/method to be accessed </param> /// <param name="obis"> the obis of the object </param> /// <param name="requestData"> the data to be used in the request </param> public LnDescriptor(int classId, Obis obis, int index, byte[] requestData) : this(classId, obis.getValue(), index, requestData) { }
/// <summary> /// Creates a Data class (class_id=1) object </summary> /// <param name="obis"> the object obis </param> public DataObject(Obis obis) { this.obis = obis; }
/// <summary> /// Creates a descriptor for a DLMS object </summary> /// <param name="classId"> the object class_id </param> /// <param name="index"> the index of the attribute/method to be accessed </param> /// <param name="obis"> the obis of the object </param> public LnDescriptor(int classId, Obis obis, int index) : this(classId, obis.getValue(), index, new byte[0]) { }