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
Nikola Balog
osie
Commits
4466677a
Commit
4466677a
authored
Oct 05, 2022
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixup prints.
parent
25de6d89
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
coupler/opc-ua-server/keep_alive_publisher.h
coupler/opc-ua-server/keep_alive_publisher.h
+1
-1
coupler/opc-ua-server/keep_alive_subscriber.h
coupler/opc-ua-server/keep_alive_subscriber.h
+4
-1
No files found.
coupler/opc-ua-server/keep_alive_publisher.h
View file @
4466677a
...
...
@@ -157,7 +157,7 @@ void callbackTicHeartBeat()
char
*
end_ptr
;
float
final_result
=
strtof
(
result2
,
&
end_ptr
);
printf
(
"final_result: %f
\n
"
,
final_result
);
//
printf( "final_result: %f\n", final_result );
UA_Float
myFloat
=
final_result
;
UA_Variant
myVar
;
...
...
coupler/opc-ua-server/keep_alive_subscriber.h
View file @
4466677a
...
...
@@ -56,8 +56,11 @@ static void dataChangeNotificationCallback(UA_Server *server, UA_UInt32 monitore
float
heart_beat
=
*
(
UA_Float
*
)
var
->
value
.
data
;
// 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
);
if
(
coupler_id
!=
COUPLER_ID
)
{
UA_LOG_INFO
(
UA_Log_Stdout
,
\
UA_LOGCATEGORY_USERLAND
,
\
"HEART BEAT: %d"
,
coupler_id
);
// convert coupler_id to str
char
*
coupler_id_str
=
convertInt2Str
(
coupler_id
);
...
...
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