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
nexedi
osie
Commits
caa88539
Commit
caa88539
authored
Jan 25, 2023
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
As heartbeat contains coupler's ID no need of additional field.
parent
f526fff9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
coupler/opc-ua-server/keep_alive_publisher.h
coupler/opc-ua-server/keep_alive_publisher.h
+7
-7
No files found.
coupler/opc-ua-server/keep_alive_publisher.h
View file @
caa88539
...
...
@@ -143,7 +143,7 @@ void callbackTicHeartBeat()
// set OPC UA's heat_beat node value
UA_NodeId
myFloatNodeId
=
UA_NODEID_STRING
(
1
,
"heart_beat"
);
//
XXX: implement heart_beat like <ID
>.<heart_beats>
//
heart_beat format is <ID_of_coupler
>.<heart_beats>
int
len
=
snprintf
(
NULL
,
0
,
"%d"
,
HEART_BEATS
);
char
*
result1
=
malloc
(
len
+
1
);
snprintf
(
result1
,
len
+
1
,
"%d"
,
HEART_BEATS
);
...
...
@@ -186,12 +186,12 @@ static void enablePublishHeartBeat(UA_Server *server, UA_ServerConfig *config){
.
type
=
UA_TYPES_FLOAT
},
// representing the ID of the coupler
{
.
name
=
"id"
,
.
description
=
"ID"
,
.
pdefaultValue
=
&
couplerID
,
.
type
=
UA_TYPES_UINT32
}
//
{
//
.name = "id",
//
.description = "ID",
//
.pdefaultValue = &couplerID,
//
.type = UA_TYPES_UINT32
//
}
};
UA_String
transportProfile
=
UA_STRING
(
DEFAULT_TRANSPORT_PROFILE
);
...
...
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