Merge pull request #144 from jpeltonen/master

- added setting of MMS request timeout to .NET
pull/162/head
Michael Zillgith 6 years ago committed by GitHub
commit ab650f10eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -70,7 +70,10 @@ namespace IEC61850
private static extern void MmsConnection_setLocalDetail (IntPtr self, Int32 localDetail);
[DllImport ("iec61850", CallingConvention=CallingConvention.Cdecl)]
private static extern Int32 MmsConnection_getLocalDetail (IntPtr self);
private static extern Int32 MmsConnection_getLocalDetail (IntPtr self);
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
private static extern Int32 MmsConnection_setRequestTimeout(IntPtr self, UInt32 timeoutInMs);
[DllImport ("iec61850", CallingConvention=CallingConvention.Cdecl)]
private static extern IntPtr MmsConnection_readMultipleVariables(IntPtr self, out int mmsError,
@ -159,7 +162,12 @@ namespace IEC61850
/// <returns>maximum accepted MMS PDU size in bytes</returns>
public int GetLocalDetail() {
return MmsConnection_getLocalDetail (self);
}
}
public void SetRequestTimeout(uint timeoutMs)
{
MmsConnection_setRequestTimeout(self, timeoutMs);
}
/// <summary>
/// Reads multipe MMS variables from the same domain

Loading…
Cancel
Save