From ec5f36b58190b61c12dfa40360ca9b397249f3b8 Mon Sep 17 00:00:00 2001 From: Tony Date: Wed, 1 Apr 2026 06:32:30 +0800 Subject: [PATCH] Fix MQTT event registration to use correct event identifier --- src/gateway_cloud.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gateway_cloud.cpp b/src/gateway_cloud.cpp index 3633307..bd48ebc 100644 --- a/src/gateway_cloud.cpp +++ b/src/gateway_cloud.cpp @@ -61,7 +61,7 @@ bool DaliCloudBridge::start(const GatewayCloudConfig& config) { return false; } - esp_mqtt_client_register_event(client_, ESP_EVENT_ANY_ID, &DaliCloudBridge::mqttEventHandler, + esp_mqtt_client_register_event(client_, MQTT_EVENT_ANY, &DaliCloudBridge::mqttEventHandler, this); if (esp_mqtt_client_start(client_) != ESP_OK) { ESP_LOGE(kTag, "esp_mqtt_client_start failed");