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
ba769996
Commit
ba769996
authored
May 05, 2022
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup. Rename.
parent
4212242d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
coupler/opc-ua-server/cli.h
coupler/opc-ua-server/cli.h
+2
-2
coupler/opc-ua-server/server.c
coupler/opc-ua-server/server.c
+1
-6
No files found.
coupler/opc-ua-server/cli.h
View file @
ba769996
...
@@ -71,7 +71,7 @@ static error_t parse_opt(int key, char *arg, struct argp_state *state)
...
@@ -71,7 +71,7 @@ static error_t parse_opt(int key, char *arg, struct argp_state *state)
arguments
->
key
=
arg
;
arguments
->
key
=
arg
;
break
;
break
;
case
'i'
:
case
'i'
:
arguments
->
id
=
arg
?
atoi
(
arg
)
:
DEFAULT_ID
;
arguments
->
id
=
arg
?
atoi
(
arg
)
:
DEFAULT_
COUPLER_
ID
;
break
;
break
;
case
'b'
:
case
'b'
:
arguments
->
heart_beat
=
atoi
(
arg
);
arguments
->
heart_beat
=
atoi
(
arg
);
...
@@ -112,7 +112,7 @@ void handleCLI(int argc, char **argv) {
...
@@ -112,7 +112,7 @@ void handleCLI(int argc, char **argv) {
arguments
.
password
=
""
;
arguments
.
password
=
""
;
arguments
.
key
=
""
;
arguments
.
key
=
""
;
arguments
.
certificate
=
""
;
arguments
.
certificate
=
""
;
arguments
.
id
=
DEFAULT_ID
;
arguments
.
id
=
DEFAULT_
COUPLER_
ID
;
arguments
.
heart_beat_interval
=
DEFAULT_HEART_BEAT_INTERVAL
;
arguments
.
heart_beat_interval
=
DEFAULT_HEART_BEAT_INTERVAL
;
arguments
.
network_address_url_data_type
=
NETWORK_ADDRESS_URL_DATA_TYPE
;
arguments
.
network_address_url_data_type
=
NETWORK_ADDRESS_URL_DATA_TYPE
;
argp_parse
(
&
argp
,
argc
,
argv
,
0
,
0
,
&
arguments
);
argp_parse
(
&
argp
,
argc
,
argv
,
0
,
0
,
&
arguments
);
...
...
coupler/opc-ua-server/server.c
View file @
ba769996
...
@@ -45,7 +45,7 @@ dict_t *SUBSCRIBER_DICT;
...
@@ -45,7 +45,7 @@ dict_t *SUBSCRIBER_DICT;
// The default port of OPC-UA server
// The default port of OPC-UA server
const
int
DEFAULT_OPC_UA_PORT
=
4840
;
const
int
DEFAULT_OPC_UA_PORT
=
4840
;
const
int
DEFAULT_MODE
=
0
;
const
int
DEFAULT_MODE
=
0
;
const
int
DEFAULT_ID
=
0
;
const
int
DEFAULT_
COUPLER_
ID
=
0
;
int
OPC_UA_PORT
;
int
OPC_UA_PORT
;
bool
ENABLE_HEART_BEAT
=
false
;
bool
ENABLE_HEART_BEAT
=
false
;
...
@@ -71,11 +71,6 @@ static void stopHandler(int sign)
...
@@ -71,11 +71,6 @@ static void stopHandler(int sign)
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
{
{
int
i
;
int
length
;
long
result
;
char
*
eptr
;
// init dictionary only once$
// init dictionary only once$
if
(
SUBSCRIBER_DICT
==
NULL
){
if
(
SUBSCRIBER_DICT
==
NULL
){
SUBSCRIBER_DICT
=
*
dictAlloc
();
SUBSCRIBER_DICT
=
*
dictAlloc
();
...
...
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