update
This commit is contained in:
parent
84bb4a99a0
commit
1c441b0d0a
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue