You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In openopc2.da_client.OpcDaClient, there is some awkward statefulness:
open_opc_config=OpenOpcConfig()
open_opc_config.OPC_SERVER=opc_server# Pretend no env vars for nowopc_client=OpcDaClient(open_opc_config=open_opc_config)
opc_client.connect(opc_server=opc_server)
The statefulness comes from:
Having to embed opc_server into OpenOpcConfig, only for OpcDaClient never to use self.opc_server
Having to pass opc_server again to opc_client.connect
Just pointing out this is awkward, and to me indicates room for a better design.
The text was updated successfully, but these errors were encountered:
In
openopc2.da_client.OpcDaClient
, there is some awkward statefulness:The statefulness comes from:
opc_server
intoOpenOpcConfig
, only forOpcDaClient
never to useself.opc_server
opc_server
again toopc_client.connect
Just pointing out this is awkward, and to me indicates room for a better design.
The text was updated successfully, but these errors were encountered: