diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-10-17 12:09:17 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-10-17 12:09:17 -0300 |
| commit | e8afe14b2e6b7190bb9f2a578f12b68302aa161f (patch) | |
| tree | ea6b1f76bc0a8aaed9fb62110a103c036280e44a /mqtt_client/main.py | |
| parent | a4fec975a665b6ebcb07fd7451e381f49f3c497a (diff) | |
refactor: Configuração de redes sensata
Diffstat (limited to 'mqtt_client/main.py')
| -rw-r--r-- | mqtt_client/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
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...") |
