2024-07-11 -

This commit is contained in:
Adolfo Delorenzo 2024-07-11 14:39:26 -06:00
parent 4bc4c4e6c6
commit 0717aed610

View File

@ -52,9 +52,12 @@ def get_gps_position():
if 1 == answer: if 1 == answer:
answer = 0 answer = 0
if ',,,,,,' in rec_buff: if ',,,,,,' in rec_buff:
print('GPS no está listo') gps_info = extract_gps_info(rec_buff)
rec_null = False client.publish("iiot/" + myhost + "/gps", gps_info, 2)
time.sleep(1) return True
else:
print('GPS no está listo')
time.sleep(1)
else: else:
print('error %d'%answer) print('error %d'%answer)
rec_buff = '' rec_buff = ''