Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

OPCUA-Client on raspberry pi can not communicate with OPCUA-Server on raspberry pi installed with CODESYS runtime

leon-zhang
2021-11-10
2021-11-11
  • leon-zhang

    leon-zhang - 2021-11-10

    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

     
  • eschwellinger

    eschwellinger - 2021-11-11

    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

     
    • leon-zhang

      leon-zhang - 2021-11-11

      Hallo Eschwellinger,

      how to disable encryption and user/managememt?

      BR

      Leon

       

Log in to post a comment.