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
35093d4e
Commit
35093d4e
authored
Mar 21, 2022
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update.
parent
4ac38223
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
coupler/opc-ua-server/server.c
coupler/opc-ua-server/server.c
+7
-7
No files found.
coupler/opc-ua-server/server.c
View file @
35093d4e
...
...
@@ -3,9 +3,9 @@
* Current format of exposed OPC-UA node variables is:
* <mod-io_number>.<relay_number>
* For example:
*
i2c0.relay0
*
i2c0.relay1
*
i2c1.relay0
*
- i2c0.relay0..3
*
- i2c0.in0..3
*
- i2c0.ain0..3
* Based on
* https://www.kernel.org/doc/Documentation/i2c/dev-interface
* https://github.com/open62541/open62541/blob/master/examples/tutorial_server_variable.c
...
...
@@ -161,8 +161,8 @@ int main(int argc, char **argv)
printf
(
"Listening port=%d
\n
"
,
arguments
.
port
);
printf
(
"Block device=%s
\n
"
,
arguments
.
device
);
printf
(
"Slave address list=%s
\n
"
,
arguments
.
slave_address_list
);
printf
(
"
k
ey=%s
\n
"
,
arguments
.
key
);
printf
(
"
c
ertificate=%s
\n
"
,
arguments
.
certificate
);
printf
(
"
K
ey=%s
\n
"
,
arguments
.
key
);
printf
(
"
C
ertificate=%s
\n
"
,
arguments
.
certificate
);
printf
(
"UUID=%s
\n
"
,
arguments
.
uuid
);
...
...
@@ -210,7 +210,7 @@ int main(int argc, char **argv)
}
/* Enable x509 */
#ifdef UA_ENABLE_ENCRYPTION
#ifdef UA_ENABLE_ENCRYPTION
if
(
strlen
(
arguments
.
key
)
>
0
&&
strlen
(
arguments
.
certificate
)
>
0
){
char
*
key_filename
=
arguments
.
key
;
char
*
certificate_filename
=
arguments
.
certificate
;
...
...
@@ -238,7 +238,7 @@ int main(int argc, char **argv)
//The place to fill the hole is very important
config
->
applicationDescription
.
applicationUri
=
UA_STRING_ALLOC
(
"urn:open62541.server.application"
);
}
#endif
#endif
// run server
UA_StatusCode
retval
=
UA_Server_run
(
server
,
&
running
);
...
...
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