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
a3c31269
Commit
a3c31269
authored
Mar 07, 2023
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix interval
parent
3b8131cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
coupler/cli.h
coupler/cli.h
+1
-0
coupler/server.c
coupler/server.c
+6
-0
No files found.
coupler/cli.h
View file @
a3c31269
...
@@ -170,6 +170,7 @@ void handleCLI(int argc, char **argv) {
...
@@ -170,6 +170,7 @@ void handleCLI(int argc, char **argv) {
ENABLE_HEART_BEAT
=
arguments
.
heart_beat
;
ENABLE_HEART_BEAT
=
arguments
.
heart_beat
;
X509_KEY_FILENAME
=
arguments
.
key
;
X509_KEY_FILENAME
=
arguments
.
key
;
X509_CERTIFICATE_FILENAME
=
arguments
.
certificate
;
X509_CERTIFICATE_FILENAME
=
arguments
.
certificate
;
printf
(
"PUBLISHING_INTERVAL=%d
\n
"
,
PUBLISHING_INTERVAL
);
// convert arguments.slave_address_list -> I2C_SLAVE_ADDR_LIST
// convert arguments.slave_address_list -> I2C_SLAVE_ADDR_LIST
i
=
0
;
i
=
0
;
...
...
coupler/server.c
View file @
a3c31269
...
@@ -168,6 +168,12 @@ int main(int argc, char **argv)
...
@@ -168,6 +168,12 @@ int main(int argc, char **argv)
// enable protocol for Pub/Sub
// enable protocol for Pub/Sub
UA_ServerConfig_addPubSubTransportLayer
(
config
,
UA_PubSubTransportLayerUDPMP
());
UA_ServerConfig_addPubSubTransportLayer
(
config
,
UA_PubSubTransportLayerUDPMP
());
// set for Pub / Sub the minimal and maximal sampling and publishing intervals
UA_DurationRange
rangePublishing
=
{
PUBLISHING_INTERVAL
,
3600
.
0
*
1000
.
0
};
UA_DurationRange
rangeSampling
=
{
PUBLISHING_INTERVAL
,
24
.
0
*
3600
.
0
*
1000
.
0
};
config
->
publishingIntervalLimits
=
rangePublishing
;
config
->
samplingIntervalLimits
=
rangeSampling
;
// enable publish keep-alive messages
// enable publish keep-alive messages
if
(
ENABLE_HEART_BEAT
)
{
if
(
ENABLE_HEART_BEAT
)
{
enablePublishHeartBeat
(
server
,
config
);
enablePublishHeartBeat
(
server
,
config
);
...
...
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