Remove redundant MQTT subscribe
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user