added function getInvokeId

pull/447/head
Dmitry Yatcenko 2 years ago
parent 48b73261c3
commit 8301cd2ab0

@ -675,6 +675,16 @@ IedConnection_getRequestTimeout(IedConnection self)
return 0; return 0;
} }
uint32_t
IedConnection_getInvokeId(IedConnection self)
{
if (self->connection) {
return MmsConnection_getInvokeId(self->connection);
}
else
return 0;
}
void void
IedConnection_setTimeQuality(IedConnection self, bool leapSecondKnown, bool clockFailure, bool clockNotSynchronized, int subsecondPrecision) IedConnection_setTimeQuality(IedConnection self, bool leapSecondKnown, bool clockFailure, bool clockNotSynchronized, int subsecondPrecision)
{ {

@ -266,6 +266,16 @@ IedConnection_setRequestTimeout(IedConnection self, uint32_t timeoutInMs);
LIB61850_API uint32_t LIB61850_API uint32_t
IedConnection_getRequestTimeout(IedConnection self); IedConnection_getRequestTimeout(IedConnection self);
/**
* \brief get current InvokeId
*
* \param self the connection object
*
* \return current InvokeId
*/
LIB61850_API uint32_t
IedConnection_getInvokeId(IedConnection self);
/** /**
* \brief Set the time quality for all timestamps generated by this IedConnection instance * \brief Set the time quality for all timestamps generated by this IedConnection instance
* *

@ -170,6 +170,16 @@ MmsConnection_setRequestTimeout(MmsConnection self, uint32_t timeoutInMs);
LIB61850_API uint32_t LIB61850_API uint32_t
MmsConnection_getRequestTimeout(MmsConnection self); MmsConnection_getRequestTimeout(MmsConnection self);
/**
* \brief Get current invokeId
*
* \param self MmsConnection instance to operate on
*
* \return current invokeId
*/
LIB61850_API uint32_t
MmsConnection_getInvokeId(MmsConnection self);
/** /**
* \brief Set the connect timeout in ms for this connection instance * \brief Set the connect timeout in ms for this connection instance
* *

@ -1658,6 +1658,12 @@ MmsConnection_getRequestTimeout(MmsConnection self)
return self->requestTimeout; return self->requestTimeout;
} }
uint32_t
MmsConnection_getInvokeId(MmsConnection self)
{
return self->nextInvokeId;
}
void void
MmsConnection_setConnectTimeout(MmsConnection self, uint32_t timeoutInMs) MmsConnection_setConnectTimeout(MmsConnection self, uint32_t timeoutInMs)
{ {

Loading…
Cancel
Save