v0.1.9.4(2024/07/15)
1. [profile: aio.py]:完善durable text相关逻辑 2. [profile: do_brake/do_current/btn_functions.py]:删除validate_resp函数,修改execution函数 3. [profile: factory_test.py] - 新增耐久/老化测试程序 - 实现六轴折线图显示 4. [profile: openapi.py]:多次合并遗留问题处理 5. templates文件夹组织架构调整
This commit is contained in:
@ -250,9 +250,8 @@ class HmiRequest(object):
|
||||
with open(heartbeat, "w", encoding='utf-8') as f_hb:
|
||||
f_hb.write(_flag)
|
||||
if _flag == '0':
|
||||
# self.w2t(f"{_id} 心跳丢失,连接失败,重新连接中...", 0, 7, 'red', tab_name=self.tab_name)
|
||||
self.w2t(f"", 0, 7, 'red', tab_name=self.tab_name)
|
||||
sleep(1.5)
|
||||
self.w2t(f"{_id} 心跳丢失,连接失败,重新连接中...", 0, 7, 'red', tab_name=self.tab_name)
|
||||
sleep(2)
|
||||
# with open(f"{current_path}/../assets/templates/c_msg.log", "w", encoding='utf-8') as f:
|
||||
# for msg in self.c_msg:
|
||||
# f.write(str(loads(msg)) + '\n')
|
||||
@ -566,7 +565,7 @@ class HmiRequest(object):
|
||||
if flg == 0: # for old protocols
|
||||
req = None
|
||||
try:
|
||||
with open(f'{current_path}/../assets/templates/{command}.json', encoding='utf-8',
|
||||
with open(f'{current_path}/../assets/templates/json/{command}.json', encoding='utf-8',
|
||||
mode='r') as f_json:
|
||||
req = load(f_json)
|
||||
except:
|
||||
@ -602,8 +601,7 @@ class HmiRequest(object):
|
||||
self.c.send(self.package(cmd))
|
||||
sleep(0.5)
|
||||
except Exception as Err:
|
||||
# self.w2t(f"{cmd}\n请求发送失败...{Err}", 0, 0, 'red', tab_name=self.tab_name)
|
||||
self.w2t(f"", 0, 0, 'red', tab_name=self.tab_name)
|
||||
self.w2t(f"{cmd}\n请求发送失败...{Err}", 0, 0, 'red', tab_name=self.tab_name)
|
||||
|
||||
return req['id']
|
||||
|
||||
|
Reference in New Issue
Block a user