This commit is contained in:
xyj 2023-12-13 18:33:55 +08:00
parent 84bb4a99a0
commit 1c441b0d0a
1 changed files with 1 additions and 0 deletions

View File

@ -166,6 +166,7 @@ def get_data():
return_data_hex = str(return_data.hex())
# print('返回的数据转换为16进制:', return_data_hex)
# print("当前风向为:", int(return_data_hex[10:14], 16) ) #单位mm
# 6号设备是8方位
if subscribe_topic == 'lihai_lot_walnutpi_dev_6':
winddirection_data = int(return_data_hex[10:14], 16)
else: