Public Member Functions | |
def | __init__ |
def | check_answer |
def | close_secure_channel |
def | connect_socket |
def | disconnect_socket |
def | open_secure_channel |
def | send_hello |
def | send_request |
def | start |
Public Attributes | |
authentication_token | |
logger | |
timeout | |
Private Member Functions | |
def | _call_callback |
def | _create_request_header |
def | _receive |
def | _run |
def | _send_request |
Private Attributes | |
_callbackmap | |
_connection | |
_do_stop | |
_lock | |
_request_handle | |
_request_id | |
_socket | |
_thread |
handle socket connection and send ua messages timeout is the timeout used while waiting for an ua answer from server
Definition at line 16 of file ua_client.py.
def opcua.client.ua_client.UASocketClient.__init__ | ( | self, | |
timeout = 1 , |
|||
security_policy = ua.SecurityPolicy() |
|||
) |
Definition at line 21 of file ua_client.py.
def opcua.client.ua_client.UASocketClient._call_callback | ( | self, | |
request_id, | |||
body | |||
) | [private] |
Definition at line 115 of file ua_client.py.
def opcua.client.ua_client.UASocketClient._create_request_header | ( | self, | |
timeout = 1000 |
|||
) | [private] |
Definition at line 122 of file ua_client.py.
def opcua.client.ua_client.UASocketClient._receive | ( | self | ) | [private] |
Definition at line 102 of file ua_client.py.
def opcua.client.ua_client.UASocketClient._run | ( | self | ) | [private] |
Definition at line 90 of file ua_client.py.
def opcua.client.ua_client.UASocketClient._send_request | ( | self, | |
request, | |||
callback = None , |
|||
timeout = 1000 , |
|||
message_type = ua.MessageType.SecureMessage |
|||
) | [private] |
send request to server, lower-level method timeout is the timeout written in ua header returns future
Definition at line 43 of file ua_client.py.
def opcua.client.ua_client.UASocketClient.check_answer | ( | self, | |
data, | |||
context | |||
) |
Definition at line 80 of file ua_client.py.
close secure channel. It seems to trigger a shutdown of socket in most servers, so be prepare to reconnect. OPC UA specs Part 6, 7.1.4 say that Server does not send a CloseSecureChannel response and should just close socket
Definition at line 170 of file ua_client.py.
def opcua.client.ua_client.UASocketClient.connect_socket | ( | self, | |
host, | |||
port | |||
) |
connect to server socket and start receiving thread
Definition at line 130 of file ua_client.py.
Definition at line 140 of file ua_client.py.
def opcua.client.ua_client.UASocketClient.open_secure_channel | ( | self, | |
params | |||
) |
Definition at line 157 of file ua_client.py.
def opcua.client.ua_client.UASocketClient.send_hello | ( | self, | |
url | |||
) |
Definition at line 146 of file ua_client.py.
def opcua.client.ua_client.UASocketClient.send_request | ( | self, | |
request, | |||
callback = None , |
|||
timeout = 1000 , |
|||
message_type = ua.MessageType.SecureMessage |
|||
) |
send request to server. timeout is the timeout written in ua header returns response object if no callback is provided
Definition at line 68 of file ua_client.py.
def opcua.client.ua_client.UASocketClient.start | ( | self | ) |
Start receiving thread. this is called automatically in connect and should not be necessary to call directly
Definition at line 34 of file ua_client.py.
Definition at line 21 of file ua_client.py.
Definition at line 21 of file ua_client.py.
Definition at line 21 of file ua_client.py.
Definition at line 21 of file ua_client.py.
Definition at line 21 of file ua_client.py.
Definition at line 21 of file ua_client.py.
Definition at line 21 of file ua_client.py.
Definition at line 21 of file ua_client.py.
Definition at line 21 of file ua_client.py.
Definition at line 21 of file ua_client.py.
Definition at line 21 of file ua_client.py.