Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
osie
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Martin Manchev
osie
Commits
25de6d89
Commit
25de6d89
authored
Oct 05, 2022
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only care for other IDs than ourself.
parent
147f631b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
coupler/opc-ua-server/keep_alive_subscriber.h
coupler/opc-ua-server/keep_alive_subscriber.h
+8
-6
No files found.
coupler/opc-ua-server/keep_alive_subscriber.h
View file @
25de6d89
...
...
@@ -57,14 +57,16 @@ static void dataChangeNotificationCallback(UA_Server *server, UA_UInt32 monitore
// split <ID>.<heart_beats>, just converting to int is enough
coupler_id
=
(
int
)
heart_beat
;
UA_LOG_INFO
(
UA_Log_Stdout
,
UA_LOGCATEGORY_USERLAND
,
"heart_beat = %f, id=%d"
,
heart_beat
,
coupler_id
);
// convert coupler_id to str
char
*
coupler_id_str
=
convertInt2Str
(
coupler_id
);
if
(
coupler_id
!=
COUPLER_ID
)
{
// convert coupler_id to str
char
*
coupler_id_str
=
convertInt2Str
(
coupler_id
);
// convert micro seconds to str
char
*
milli_seconds_now_str
=
convertLongInt2Str
(
milli_seconds_now
);
// convert micro seconds to str
char
*
milli_seconds_now_str
=
convertLongInt2Str
(
milli_seconds_now
);
// Add to our local linked list
addItem
(
&
SUBSCRIBER_DICT
,
coupler_id_str
,
milli_seconds_now_str
);
// Add to our local linked list
addItem
(
&
SUBSCRIBER_DICT
,
coupler_id_str
,
milli_seconds_now_str
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment