Compare commits

...

1 Commits

Author SHA1 Message Date
224b4f9ab0 Remove redundant MQTT subscribe 2026-03-23 18:58:29 +01:00

View File

@@ -32,10 +32,7 @@ void wlan_connection_handler(WiFiEvent_t event) {
} }
} }
void on_mqtt_connection(bool session) { void on_mqtt_connection(bool session) { Serial.println("MQTT connected"); };
Serial.println("MQTT connected");
mqtt_client.subscribe(config->topic, 2);
};
void on_mqtt_disconnection(AsyncMqttClientDisconnectReason reason) { void on_mqtt_disconnection(AsyncMqttClientDisconnectReason reason) {
Serial.println("MQTT disconnected"); Serial.println("MQTT disconnected");