Skip to content

Commit

Permalink
- check for presence of ResvTms to be able to handle ed.1 devices
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Zillgith <[email protected]>
  • Loading branch information
mzillgith committed May 27, 2024
1 parent a83a3c4 commit 31d017f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/iec61850_client_connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,12 @@ configureRcb (const std::shared_ptr<ReportSubscription>& rs,
{
parametersMask |= RCB_ELEMENT_OPT_FLDS;
ClientReportControlBlock_setOptFlds(rcb,RPT_OPT_REASON_FOR_INCLUSION | RPT_OPT_ENTRY_ID | RPT_OPT_TIME_STAMP| RPT_OPT_DATA_SET);
parametersMask |= RCB_ELEMENT_RESV_TMS;
ClientReportControlBlock_setResvTms (rcb, 1000);

if (ClientReportControlBlock_hasResvTms(rcb))
{
parametersMask |= RCB_ELEMENT_RESV_TMS;
ClientReportControlBlock_setResvTms (rcb, 1000);
}

if (firstTimeConnect)
{
Expand Down

0 comments on commit 31d017f

Please sign in to comment.