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
c7ad90d1
Commit
c7ad90d1
authored
Jan 28, 2022
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup.
parent
2863011c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
coupler/opc-ua-server/server.c
coupler/opc-ua-server/server.c
+3
-3
No files found.
coupler/opc-ua-server/server.c
View file @
c7ad90d1
...
@@ -465,13 +465,13 @@ int main(int argc, char **argv) {
...
@@ -465,13 +465,13 @@ int main(int argc, char **argv) {
arguments
.
mode
=
DEFAULT_MODE
;
arguments
.
mode
=
DEFAULT_MODE
;
arguments
.
device
=
DEFAULT_I2C_BLOCK_DEVICE_NAME
;
arguments
.
device
=
DEFAULT_I2C_BLOCK_DEVICE_NAME
;
arguments
.
slave_address_list
=
DEFAULT_I2C_0_ADDR
;
arguments
.
slave_address_list
=
DEFAULT_I2C_0_ADDR
;
arguments
.
username
=
""
;
arguments
.
password
=
""
;
argp_parse
(
&
argp
,
argc
,
argv
,
0
,
0
,
&
arguments
);
argp_parse
(
&
argp
,
argc
,
argv
,
0
,
0
,
&
arguments
);
printf
(
"Mode=%d
\n
"
,
arguments
.
mode
);
printf
(
"Mode=%d
\n
"
,
arguments
.
mode
);
printf
(
"Listening port=%d
\n
"
,
arguments
.
port
);
printf
(
"Listening port=%d
\n
"
,
arguments
.
port
);
printf
(
"Block device=%s
\n
"
,
arguments
.
device
);
printf
(
"Block device=%s
\n
"
,
arguments
.
device
);
printf
(
"Slave address list=%s
\n
"
,
arguments
.
slave_address_list
);
printf
(
"Slave address list=%s
\n
"
,
arguments
.
slave_address_list
);
printf
(
"Username=%s
\n
"
,
arguments
.
username
);
printf
(
"Password=%s
\n
"
,
arguments
.
password
);
// transfer to global variables (CLI input)
// transfer to global variables (CLI input)
I2C_VIRTUAL_MODE
=
arguments
.
mode
;
I2C_VIRTUAL_MODE
=
arguments
.
mode
;
...
@@ -508,7 +508,7 @@ int main(int argc, char **argv) {
...
@@ -508,7 +508,7 @@ int main(int argc, char **argv) {
char
*
username
=
arguments
.
username
;
char
*
username
=
arguments
.
username
;
char
*
password
=
arguments
.
password
;
char
*
password
=
arguments
.
password
;
UA_UsernamePasswordLogin
logins
[
1
]
=
{
UA_UsernamePasswordLogin
logins
[
1
]
=
{
{
UA_STRING
(
username
),
UA_STRING
(
password
)},
{
UA_STRING
(
arguments
.
username
),
UA_STRING
(
arguments
.
password
)},
};
};
config
->
accessControl
.
clear
(
&
config
->
accessControl
);
config
->
accessControl
.
clear
(
&
config
->
accessControl
);
...
...
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