Closed shamyjun22 closed 4 months ago
With the following line you do connect to the server.
async with Client("opc.tcp://192.168.100.139:49320") as client:
Rewrite the code like this:
async def main():
# configure client
client = Client("opc.tcp://192.168.100.139:49320")
client.set_user("Administrator")
client.set_password("admin1234!@#$")
client.set_security_string("Basic256Sha256,SignAndEncrypt,cert.der,key.pem")
client.application_uri = "urn:PC16-LT16:Kepware.KEPServerEX.V6:UA%20Server"
# connect to the server
async with client:
# connected
.....
Hi @schroeder, thanks.
Hi there, I am running an asyncua client to connect to my Kepware KEPServerEX 6.15 installed in my local machine. I can run and read values successfully with certificate and key when using opcua. However, I wanted to implement it asynchronously.
Using opcua: Working client.py
Using asyncua: Not working client.py:
Upon running, the error was:
I think, I was doing wrong with asynchronous implementation. Hopefully you could provide an input Thanks in advance