From a73d0d45720224b2fdba1d2fef42aacfb239c554 Mon Sep 17 00:00:00 2001 From: Adolfo Delorenzo Date: Thu, 11 Jul 2024 14:31:25 -0600 Subject: [PATCH] fixed gps2 --- gps2.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gps2.py b/gps2.py index 39bd672..61c1a0c 100644 --- a/gps2.py +++ b/gps2.py @@ -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)