From 9633b03af315da897a2f65996f14e9ad29fdd95e Mon Sep 17 00:00:00 2001 From: serg3295 Date: Sun, 16 Jul 2023 10:19:16 +0300 Subject: [PATCH] fix: mqtt module --- components/modules/mqtt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/modules/mqtt.c b/components/modules/mqtt.c index 3c4909aa..0f59a965 100644 --- a/components/modules/mqtt.c +++ b/components/modules/mqtt.c @@ -419,7 +419,7 @@ static int mqtt_connect(lua_State* L) { ESP_LOGD(TAG, "connect: mqtt_context*: %p", mqtt_context); - if (config.broker.address.uri != NULL) + if (config.broker.address.uri == NULL) { config.broker.address.port = port; config.broker.address.transport =