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
c98bc7e0
Commit
c98bc7e0
authored
Oct 08, 2024
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Plain Diff
Fix heart beat
See merge request
!60
parents
0d1095f7
0c3cca1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
coupler/keep_alive.h
coupler/keep_alive.h
+2
-2
coupler/mod_io_opc_ua.h
coupler/mod_io_opc_ua.h
+2
-1
No files found.
coupler/keep_alive.h
View file @
c98bc7e0
...
...
@@ -56,8 +56,8 @@ const int DEFAULT_HEART_BEAT_TIMEOUT_INTERVAL = 4 * DEFAULT_HEART_BEAT_INTERVAL;
static
int
HEART_BEAT_TIMEOUT_INTERVAL
=
DEFAULT_HEART_BEAT_TIMEOUT_INTERVAL
;
// the list of couplers onto which we depend for properly running
//
XXX: assume ONLY 8
couplers!
unsigned
int
HEART_BEAT_ID_LIST
[
]
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
};
//
assume maximum of 127
couplers!
unsigned
int
HEART_BEAT_ID_LIST
[
127
]
=
{
0
};
// the interval for publishing messages
static
int
PUBLISHING_INTERVAL
=
10
;
...
...
coupler/mod_io_opc_ua.h
View file @
c98bc7e0
...
...
@@ -471,7 +471,8 @@ static void addValueCallbackToCurrentTimeVariable(UA_Server *server)
int
device_number
,
offset_number
;
char
*
node_id
=
malloc
(
sizeof
(
char
)
*
10
);
// list of relays, digital and analog callbacks for all devices (XXX: for now only 4 out of 127 possible!)
// list of relays, digital and analog callbacks for all devices
// XXX: for now only 4 out of 127 added!
static
void
(
*
callables
[
40
])
(
UA_Server
*
server
,
const
UA_NodeId
*
sessionId
,
void
*
sessionContext
,
const
UA_NodeId
*
nodeId
,
void
*
nodeContext
,
const
UA_NumericRange
*
range
,
...
...
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