|
@@ -144,7 +144,7 @@ async def get_opc_data(sys_url, point_arr, ns=2):
|
|
# 监听点位
|
|
# 监听点位
|
|
await client.create_subscription(500, handler)
|
|
await client.create_subscription(500, handler)
|
|
except Exception as e:
|
|
except Exception as e:
|
|
- print(e.args)
|
|
|
|
|
|
+ # print(e.args)
|
|
raise Exception("设置监听错误!")
|
|
raise Exception("设置监听错误!")
|
|
try:
|
|
try:
|
|
value = await tag.read_value()
|
|
value = await tag.read_value()
|