From a3485809710d235ebcb8e02633df200025d3644d Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Wed, 13 Dec 2023 17:10:22 +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 846aa14..9d8cd24 100755 --- a/sensor_to_server.py +++ b/sensor_to_server.py @@ -165,7 +165,7 @@ def get_data(): # 二进制转换为16进制:010304010802307b79 return_data_hex = str(return_data.hex()) # print('返回的数据转换为16进制:', return_data_hex) - # print("当前风向为:", int(return_data_hex[10:14], 16))#单位mm + print("当前风向为:", int(return_data_hex[10:14], 16))#单位mm winddirection_data = int(return_data_hex[10:14], 16) time.sleep(5) # print('{"name":"%d","name1":"%d"}', 123,456)