- .NET API: ReportControlBlock.GetOwner returns null when no owner available (#79)

pull/90/head
Michael Zillgith 7 years ago
parent 4a135fa252
commit 9b4a06e573

@ -742,14 +742,19 @@ namespace IEC61850
/// <summary>
/// Gets the current owner of the RCB
/// </summary>
/// <returns>The owner information</returns>
/// <returns>The owner information, or null when no owner information is available.</returns>
public byte[] GetOwner()
{
IntPtr mmsValuePtr = ClientReportControlBlock_getOwner(self);
if (mmsValuePtr != IntPtr.Zero)
{
MmsValue octetStringVal = new MmsValue(mmsValuePtr);
return octetStringVal.getOctetString();
}
else
return null;
}
}

Loading…
Cancel
Save