From e8afe14b2e6b7190bb9f2a578f12b68302aa161f Mon Sep 17 00:00:00 2001 From: Matheus Date: Fri, 17 Oct 2025 12:09:17 -0300 Subject: refactor: Configuração de redes sensata MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mqtt_client/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mqtt_client') diff --git a/mqtt_client/main.py b/mqtt_client/main.py index 80b4da9..dad09b5 100644 --- a/mqtt_client/main.py +++ b/mqtt_client/main.py @@ -34,7 +34,7 @@ connected = False while(not connected): try: - mqttc.connect("127.0.0.1", 1883, 60, '', 0, True) + mqttc.connect("mosquitto", 1883, 60, '', 0, True) connected = True except ConnectionRefusedError: print("Failed to connect. Retrying...") -- cgit v1.2.3