|
@@ -22,6 +22,7 @@ from requests import get as requests_get
|
|
|
# pyinstaller.exe -D -n LogTT_tools_V0.0.0.2 main.py
|
|
# pyinstaller.exe -D -n LogTT_tools_V0.0.0.2 main.py
|
|
|
# pyinstaller.exe -w -F -n LogTT_tools_V0.0.0.3 main.py
|
|
# pyinstaller.exe -w -F -n LogTT_tools_V0.0.0.3 main.py
|
|
|
# pyinstaller.exe -w -F -n LogTT_tools_V0.0.0.3 main.py
|
|
# pyinstaller.exe -w -F -n LogTT_tools_V0.0.0.3 main.py
|
|
|
|
|
+# pyinstaller.exe -w -F -n LogTT_tools_V0.0.0.4 main.py
|
|
|
|
|
|
|
|
client_id = "LogTT_tool_" + node()
|
|
client_id = "LogTT_tool_" + node()
|
|
|
g_client = mqtt_client.Client(client_id)
|
|
g_client = mqtt_client.Client(client_id)
|
|
@@ -35,7 +36,7 @@ mqtt_timer_time_out = 3*1000
|
|
|
mqtt_subtopic = [("cpyypt/up/9002/#", 0)]
|
|
mqtt_subtopic = [("cpyypt/up/9002/#", 0)]
|
|
|
mqtt_pubtopic = "cpyypt/down/9002/0000000001"
|
|
mqtt_pubtopic = "cpyypt/down/9002/0000000001"
|
|
|
|
|
|
|
|
-version = "0.0.0.3"
|
|
|
|
|
|
|
+version = "0.0.0.4"
|
|
|
version_w_ascii = 1
|
|
version_w_ascii = 1
|
|
|
version_w_hex = 1
|
|
version_w_hex = 1
|
|
|
|
|
|
|
@@ -231,7 +232,7 @@ class MyWindow(QMainWindow, Ui_MainWindow):
|
|
|
|
|
|
|
|
elif msg.payload[:len(start_rs485)] == start_rs485.encode("utf-8"):
|
|
elif msg.payload[:len(start_rs485)] == start_rs485.encode("utf-8"):
|
|
|
cmd_type = start_rs485
|
|
cmd_type = start_rs485
|
|
|
- flag_ascii = False
|
|
|
|
|
|
|
+ flag_ascii = True
|
|
|
flag_hex = True
|
|
flag_hex = True
|
|
|
head = msg.payload[:len(start_rs485)]
|
|
head = msg.payload[:len(start_rs485)]
|
|
|
body = msg.payload[len(start_rs485):]
|
|
body = msg.payload[len(start_rs485):]
|