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
49a9ad06
Commit
49a9ad06
authored
Apr 26, 2022
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move to re-usable place.
parent
725eedf8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
coupler/opc-ua-server/keep_alive.h
coupler/opc-ua-server/keep_alive.h
+13
-0
coupler/opc-ua-server/keep_alive_publisher.h
coupler/opc-ua-server/keep_alive_publisher.h
+0
-13
No files found.
coupler/opc-ua-server/keep_alive.h
View file @
49a9ad06
// global HEART BEATs of coupler
static
unsigned
int
HEART_BEATS
=
0
;
// the heart beat interval$$
const
int
DEFAULT_HEART_BEAT_INTERVAL
=
250
;
static
int
HEART_BEAT_INTERVAL
=
DEFAULT_HEART_BEAT_INTERVAL
;
// the list of couplers onto which we depend for properly running$
unsigned
int
HEART_BEAT_ID_LIST
[]
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
};
// the interval for publishing messages$
const
int
PUBLISHING_INTERVAL
=
100
;
// a hard coded writer group, data set and publisher ID$
// (should be same for publisher / subscriber)$
const
int
WRITER_GROUP_ID
=
100
;
...
...
coupler/opc-ua-server/keep_alive_publisher.h
View file @
49a9ad06
...
...
@@ -4,19 +4,6 @@ Keep alive implementation for couplers based on OPC UA's pub/sub mechanism
#include "keep_alive.h"
// global HEART BEATs of coupler$
static
unsigned
int
HEART_BEATS
=
0
;
// the heart beat interval$
const
int
DEFAULT_HEART_BEAT_INTERVAL
=
250
;
static
int
HEART_BEAT_INTERVAL
=
DEFAULT_HEART_BEAT_INTERVAL
;
// the list of couplers onto which we depend for properly running
unsigned
int
HEART_BEAT_ID_LIST
[]
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
};
// the interval for publishing messages
const
int
PUBLISHING_INTERVAL
=
100
;
UA_NodeId
connectionIdent
,
publishedDataSetIdent
,
writerGroupIdent
;
static
void
addPubSubConnection
(
UA_Server
*
server
,
UA_String
*
transportProfile
,
...
...
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