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
010fbdb3
Commit
010fbdb3
authored
Oct 28, 2015
by
olivier R-D
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some servers do not like 0 as timeout, so write a high number
parent
deee578f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
opcua/binary_client.py
opcua/binary_client.py
+4
-2
No files found.
opcua/binary_client.py
View file @
010fbdb3
...
...
@@ -377,11 +377,13 @@ class BinaryClient(object):
acks
=
[]
request
=
ua
.
PublishRequest
()
request
.
Parameters
.
SubscriptionAcknowledgements
=
acks
self
.
_uasocket
.
send_request
(
request
,
self
.
_call_publish_callback
,
timeout
=
0
)
self
.
_uasocket
.
send_request
(
request
,
self
.
_call_publish_callback
,
timeout
=
int
(
9e8
)
)
def
_call_publish_callback
(
self
,
future
):
self
.
logger
.
info
(
"call_publish_callback"
)
response
=
ua
.
PublishResponse
.
from_binary
(
future
.
result
())
data
=
future
.
result
()
self
.
_uasocket
.
check_answer
(
data
,
"ServiceFault reveived from server while waiting for publish response"
)
response
=
ua
.
PublishResponse
.
from_binary
(
data
)
if
response
.
Parameters
.
SubscriptionId
not
in
self
.
_publishcallbacks
:
self
.
logger
.
warning
(
"Received data for unknown subscription: %s "
,
response
.
Parameters
.
SubscriptionId
)
return
...
...
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