Open godassasiom opened 3 years ago
whta‘s problem?
from opcua import ua, Server server=Server() server._set_endpoints("opc.tcp://192.168.2.100:48400/freeopcua/server/") uri = "http://examples.freeopcua.github.io" idx = server.register_namespace(uri) server.start()
then debug tell me
D:\python3.7\python.exe D:/verp_python/opcua_test/opcua_client.py
cryptography is not installed, use of crypto disabled
cryptography is not installed, use of crypto disabled
Traceback (most recent call last):
File "D:/verp_python/opcua_test/opcua_client.py", line 2, in
please help me
do not user underscore methods if you dont know what you are doing ( internal methods ) use "server.set_endpoint(" like in the examples 😉
Examples: https://github.com/FreeOpcUa/python-opcua/tree/master/examples
Undescore:
https://www.datacamp.com/community/tutorials/role-underscore-python#SLU
Single Pre Underscore is used for internal use. Most of us don't use it because of that reason.
edp.SecurityPolicyUri = policy.URI