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
1
Merge Requests
1
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
472b1233
Commit
472b1233
authored
Apr 22, 2022
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use constantants.
parent
19633145
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
coupler/opc-ua-server/keep_alive.h
coupler/opc-ua-server/keep_alive.h
+5
-5
No files found.
coupler/opc-ua-server/keep_alive.h
View file @
472b1233
...
...
@@ -8,14 +8,14 @@ static unsigned int HEART_BEATS = 0;
// the heart beat interval$
static
int
HEART_BEAT_INTERVAL
=
250
;
// both publisher and subscriber should use same publisher id
const
int
PUBLISHER_ID
=
2234
;
// the interval for publishing messages
const
int
PUBLISHING_INTERVAL
=
100
;
// a hard coded writer group (should be same for publisher / subscriber)
// a hard coded writer group, data set and publisher ID
// (should be same for publisher / subscriber)
const
int
WRITER_GROUP_ID
=
100
;
const
int
DATASET_WRITER_ID
=
62541
;
const
int
PUBLISHER_ID
=
2234
;
UA_NodeId
connectionIdent
,
publishedDataSetIdent
,
writerGroupIdent
;
...
...
@@ -102,7 +102,7 @@ static void addDataSetWriter(UA_Server *server) {
UA_DataSetWriterConfig
dataSetWriterConfig
;
memset
(
&
dataSetWriterConfig
,
0
,
sizeof
(
UA_DataSetWriterConfig
));
dataSetWriterConfig
.
name
=
UA_STRING
(
"Demo DataSetWriter"
);
dataSetWriterConfig
.
dataSetWriterId
=
62541
;
dataSetWriterConfig
.
dataSetWriterId
=
DATASET_WRITER_ID
;
dataSetWriterConfig
.
keyFrameCount
=
10
;
UA_Server_addDataSetWriter
(
server
,
writerGroupIdent
,
publishedDataSetIdent
,
&
dataSetWriterConfig
,
&
dataSetWriterIdent
);
...
...
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