fixed gps2

This commit is contained in:
Adolfo Delorenzo 2024-07-11 14:31:25 -06:00
parent d070254e2a
commit a73d0d4572

View File

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