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()