Fix MQTT event registration to use correct event identifier
This commit is contained in:
@@ -61,7 +61,7 @@ bool DaliCloudBridge::start(const GatewayCloudConfig& config) {
|
|||||||
return false;
|
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);
|
this);
|
||||||
if (esp_mqtt_client_start(client_) != ESP_OK) {
|
if (esp_mqtt_client_start(client_) != ESP_OK) {
|
||||||
ESP_LOGE(kTag, "esp_mqtt_client_start failed");
|
ESP_LOGE(kTag, "esp_mqtt_client_start failed");
|
||||||
|
|||||||
Reference in New Issue
Block a user