Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
opcua-asyncio
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
Nikola Balog
opcua-asyncio
Commits
b98292a3
Commit
b98292a3
authored
Dec 18, 2015
by
olivier R-D
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compare element in uri instead of using startwiths
parent
1617be87
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
opcua/internal_server.py
opcua/internal_server.py
+3
-2
No files found.
opcua/internal_server.py
View file @
b98292a3
...
...
@@ -123,8 +123,10 @@ class InternalServer(object):
return
[
desc
.
Server
for
desc
in
self
.
_known_servers
.
values
()]
servers
=
[]
for
serv
in
self
.
_known_servers
.
values
():
serv_uri
=
serv
.
Server
.
ApplicationUri
.
split
(
":"
)
for
uri
in
params
.
ServerUris
:
if
serv
.
Server
.
ApplicationUri
.
startswith
(
uri
):
uri
=
uri
.
split
(
":"
)
if
serv_uri
[:
len
(
uri
)]
==
uri
:
servers
.
append
(
serv
.
Server
)
break
return
servers
...
...
@@ -137,7 +139,6 @@ class InternalServer(object):
appdesc
.
ApplicationType
=
server
.
ServerType
appdesc
.
GatewayServerUri
=
server
.
GatewayServerUri
appdesc
.
DiscoveryUrls
=
server
.
DiscoveryUrls
# FIXME: select discovery uri using reachability from client network
print
(
"Registring new server: "
,
server
.
ServerUri
)
self
.
_known_servers
[
server
.
ServerUri
]
=
ServerDesc
(
appdesc
,
conf
)
def
register_server2
(
self
,
params
):
...
...
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