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
6990caea
Commit
6990caea
authored
Feb 16, 2019
by
oroulet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Surface send_hello server errors from @urianchang
parent
2b462740
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
opcua/client/client.py
opcua/client/client.py
+3
-1
opcua/client/ua_client.py
opcua/client/ua_client.py
+2
-1
No files found.
opcua/client/client.py
View file @
6990caea
...
...
@@ -233,7 +233,9 @@ class Client(object):
Send OPC-UA hello to server
"""
ack
=
await
self
.
uaclient
.
send_hello
(
self
.
server_url
.
geturl
(),
self
.
max_messagesize
,
self
.
max_chunkcount
)
# FIXME check ack
# TODO: Handle ua.UaError
if
isinstance
(
ack
,
ua
.
UaStatusCodeError
):
raise
ack
async
def
open_secure_channel
(
self
,
renew
=
False
):
"""
...
...
opcua/client/ua_client.py
View file @
6990caea
...
...
@@ -82,7 +82,8 @@ class UASocketProtocol(asyncio.Protocol):
elif
isinstance
(
msg
,
ua
.
Acknowledge
):
self
.
_call_callback
(
0
,
msg
)
elif
isinstance
(
msg
,
ua
.
ErrorMessage
):
self
.
logger
.
warning
(
"Received an error: %r"
,
msg
)
self
.
logger
.
fatal
(
"Received an error: %r"
,
msg
)
self
.
_call_callback
(
0
,
ua
.
UaStatusCodeError
(
msg
.
Error
.
value
))
else
:
raise
ua
.
UaError
(
"Unsupported message type: %s"
,
msg
)
...
...
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