修改sf_machine_connect模块以适配新的设备构成

This commit is contained in:
mgw
2023-11-22 14:22:41 +08:00
parent cc58425f50
commit ae6ec7183e
6 changed files with 79 additions and 77 deletions

View File

@@ -26,11 +26,11 @@ class Py2opcua:
"""
# try:
self.client.connect()
# print("opcua服务器连接成功可以写入")
# return self.client
# print("opcua服务器连接成功可以写入")
# return self.client
# except Exception as e:
# print("opcua服务器连接失败请检查" + str(e))
# temp_dict = temp_dict
# temp_dict = temp_dict
temp_list = list(temp_dict.items())
for i in range(len(temp_list)):
# 寻找节点上的变量