I'm trying to use a OPCUA-Client programmed as a Python File with the help of open source package opcua on a raspberry pi to communicate with the OPCUA-Server on the same Raspberry Pi installed with Codesys runtime.
Python Code:
from opcua import Client
client = Client("opc.tcp://localhost:4840")
client.set_user("xxxxxx")
client.set_password("xxxxxx")
client.connect()
print("Client is connected to Server")
Hallo everyone,
I'm trying to use a OPCUA-Client programmed as a Python File with the help of open source package opcua on a raspberry pi to communicate with the OPCUA-Server on the same Raspberry Pi installed with Codesys runtime.
Python Code:
from opcua import Client
client = Client("opc.tcp://localhost:4840")
client.set_user("xxxxxx")
client.set_password("xxxxxx")
client.connect()
print("Client is connected to Server")
also shown in the attachments.
But I get the error message
shown in the following attachments.
Does anyone know how to solve this problem?
Best Regards,
Leon
Hi,
maybe this old example show you the right direction(not sure maybe at that time encryption and user/managememt was not enabled:
https://forge.codesys.com/forge/talk/Runtime/thread/04361f89ec/?limit=25&page=1#7f41
Hallo Eschwellinger,
how to disable encryption and user/managememt?
BR
Leon
best would be to have a client which support it , but in case not:
Last edit: eschwellinger 2021-11-11