From 4bc4c4e6c60fb4210f0b2d09c6e118e4024af213 Mon Sep 17 00:00:00 2001 From: Adolfo Delorenzo Date: Thu, 11 Jul 2024 14:33:54 -0600 Subject: [PATCH] 2024-07-11 - --- gps2.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gps2.py b/gps2.py index 61c1a0c..9d50aa7 100644 --- a/gps2.py +++ b/gps2.py @@ -48,13 +48,10 @@ def get_gps_position(): time.sleep(2) while rec_null: answer = send_at('AT+CGPSINFO','+CGPSINFO: ',1) + client.publish("iiot/"+ myhost +"/gps", answer, 2) 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)