update
This commit is contained in:
parent
68072b177b
commit
a2210b4624
|
@ -31,6 +31,7 @@ if __name__ == '__main__':
|
|||
windspeed_send = bytes.fromhex(windspeed_send)
|
||||
winddirection_send = bytes.fromhex(winddirection_send)
|
||||
while True:
|
||||
try:
|
||||
# if ser.is_open:
|
||||
ser.write(temp_send)
|
||||
time.sleep(1)
|
||||
|
@ -182,3 +183,6 @@ if __name__ == '__main__':
|
|||
}
|
||||
t = LOT_DATA(**data)
|
||||
add(t)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue