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
425c6a8e
Commit
425c6a8e
authored
Jan 17, 2022
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow to set OPC-UA's port over -p CLI switch.
parent
27a854d3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
coupler/opc-ua-server/server.c
coupler/opc-ua-server/server.c
+5
-5
No files found.
coupler/opc-ua-server/server.c
View file @
425c6a8e
...
@@ -435,10 +435,10 @@ int main(int argc, char **argv) {
...
@@ -435,10 +435,10 @@ int main(int argc, char **argv) {
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
;
argp_parse
(
&
argp
,
argc
,
argv
,
0
,
0
,
&
arguments
);
argp_parse
(
&
argp
,
argc
,
argv
,
0
,
0
,
&
arguments
);
printf
(
"
m
ode=%d
\n
"
,
arguments
.
mode
);
printf
(
"
M
ode=%d
\n
"
,
arguments
.
mode
);
printf
(
"port=%d
\n
"
,
arguments
.
port
);
printf
(
"
Listening
port=%d
\n
"
,
arguments
.
port
);
printf
(
"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
);
// transfer to global variables (CLI input)
// transfer to global variables (CLI input)
I2C_VIRTUAL_MODE
=
arguments
.
mode
;
I2C_VIRTUAL_MODE
=
arguments
.
mode
;
...
@@ -462,7 +462,7 @@ int main(int argc, char **argv) {
...
@@ -462,7 +462,7 @@ int main(int argc, char **argv) {
signal
(
SIGTERM
,
stopHandler
);
signal
(
SIGTERM
,
stopHandler
);
UA_Server
*
server
=
UA_Server_new
();
UA_Server
*
server
=
UA_Server_new
();
UA_ServerConfig_set
Default
(
UA_Server_getConfig
(
server
)
);
UA_ServerConfig_set
Minimal
(
UA_Server_getConfig
(
server
),
arguments
.
port
,
NULL
);
UA_ServerConfig
*
config
=
UA_Server_getConfig
(
server
);
UA_ServerConfig
*
config
=
UA_Server_getConfig
(
server
);
config
->
verifyRequestTimestamp
=
UA_RULEHANDLING_ACCEPT
;
config
->
verifyRequestTimestamp
=
UA_RULEHANDLING_ACCEPT
;
...
...
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