From 8f315b06f7808e4f21f60174aee031d921f53eac Mon Sep 17 00:00:00 2001 From: Adolfo Delorenzo Date: Sat, 3 Aug 2024 18:37:54 -0600 Subject: [PATCH] 2024-08-03 - --- modbus_gps001.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modbus_gps001.py b/modbus_gps001.py index 6b8f343..6abdfcd 100755 --- a/modbus_gps001.py +++ b/modbus_gps001.py @@ -83,11 +83,11 @@ def initialize_gps(gps_ser): time.sleep(2) # Aumentar el tiempo de espera gps_ser.write(b'AT+CGNSTST=1\r') # Iniciar la transmisión de datos time.sleep(2) # Aumentar el tiempo de espera - + # Leer la respuesta del GPS para asegurarse de que está funcionando response = gps_ser.read(100) logging.info(f"GPS initialized with response: {response}") - + except Exception as e: logging.error(f"Error initializing GPS: {e}") @@ -229,4 +229,4 @@ def main(): influx_client.close() if __name__ == "__main__": - main() \ No newline at end of file + main()