From 3a306e31b72553a1408cfd12ee90cfab78ac4fc4 Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Wed, 13 Dec 2023 17:38:11 +0800 Subject: [PATCH] update --- sensor_to_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sensor_to_server.py b/sensor_to_server.py index 69b5ef1..28139f7 100755 --- a/sensor_to_server.py +++ b/sensor_to_server.py @@ -164,7 +164,7 @@ def get_data(): # print('返回的数据2进制:', return_data) # 二进制转换为16进制:010304010802307b79 return_data_hex = str(return_data.hex()) - # print('返回的数据转换为16进制:', return_data_hex) + print('返回的数据转换为16进制:', return_data_hex) # print("当前风向为:", int(return_data_hex[10:14], 16) ) #单位mm winddirection_data = int(return_data_hex[6:10], 16) / 10 time.sleep(5)