- .NET API: Added ReportControlBlock.GetOwner method (#79)

pull/80/head
Michael Zillgith 7 years ago
parent e6ace3a787
commit cd81f9b13d

@ -738,6 +738,19 @@ namespace IEC61850
flagResvTms = true; flagResvTms = true;
} }
/// <summary>
/// Gets the current owner of the RCB
/// </summary>
/// <returns>The owner information</returns>
public byte[] GetOwner()
{
IntPtr mmsValuePtr = ClientReportControlBlock_getOwner(self);
MmsValue octetStringVal = new MmsValue(mmsValuePtr);
return octetStringVal.getOctetString();
}
} }
} }

@ -104,6 +104,10 @@ namespace reporting
rcb2.SetRCBValues(); rcb2.SetRCBValues();
rcb2.GetRCBValues();
Console.WriteLine("RCB: " + rcbReference2 + " Owner: " + BitConverter.ToString(rcb2.GetOwner()));
rcb3.GetRCBValues(); rcb3.GetRCBValues();
if (rcb3.IsBuffered()) if (rcb3.IsBuffered())

Loading…
Cancel
Save