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
1f14aa65
Commit
1f14aa65
authored
Feb 06, 2020
by
Josh Bode
Committed by
oroulet
Feb 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up some documentation formatting
parent
d5ab395d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
asyncua/client/client.py
asyncua/client/client.py
+15
-8
No files found.
asyncua/client/client.py
View file @
1f14aa65
...
...
@@ -108,12 +108,16 @@ class Client:
async
def
set_security_string
(
self
,
string
:
str
):
"""
Set SecureConnection mode. String format:
Policy,Mode,certificate,private_key[,server_private_key]
where Policy is Basic128Rsa15, Basic256 or Basic256Sha256,
Mode is Sign or SignAndEncrypt
certificate, private_key and server_private_key are
paths to .pem or .der files
Set SecureConnection mode.
:param string: Mode format ``Policy,Mode,certificate,private_key[,server_private_key]``
where:
- ``Policy`` is ``Basic128Rsa15``, ``Basic256`` or ``Basic256Sha256``
- ``Mode`` is ``Sign`` or ``SignAndEncrypt``
- ``certificate``, ``private_key`` and ``server_private_key`` are paths to ``.pem`` or ``.der`` files
Call this before connect()
"""
if
not
string
:
...
...
@@ -269,6 +273,8 @@ class Client:
return
await
self
.
uaclient
.
close_secure_channel
()
async
def
get_endpoints
(
self
)
->
list
:
"""Get a list of OPC-UA endpoints."""
params
=
ua
.
GetEndpointsParameters
()
params
.
EndpointUrl
=
self
.
server_url
.
geturl
()
return
await
self
.
uaclient
.
get_endpoints
(
params
)
...
...
@@ -494,9 +500,10 @@ class Client:
Returns a Subscription object which allows to subscribe to events or data changes on server.
:param period: Either a publishing interval in milliseconds or a `CreateSubscriptionParameters` instance.
The second option should be used, if the asyncua-server has problems with the default options.
The second option should be used, if the asyncua-server has problems with the default options.
:param handler: Class instance with data_change and/or event methods (see `SubHandler`
base class for details). Remember not to block the main event loop inside the handler methods.
base class for details). Remember not to block the main event loop inside the handler methods.
"""
if
isinstance
(
period
,
ua
.
CreateSubscriptionParameters
):
params
=
period
...
...
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