new start to work on this

This commit is contained in:
2021-11-08 11:23:51 +01:00
parent 028b82e81a
commit fc5850303a
7 changed files with 40 additions and 59 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ void reconnectMqtt() {
String clientId = "ESP32Rover-";
clientId += String(random(0xffff), HEX);
// Attempt to connect
if (mqtt_client.connect(clientId.c_str())) {
if (mqtt_client.connect(clientId.c_str(), MQTT_USER, MQTT_PASSWORD)) {
Serial.println("connected");
// Once connected, publish an announcement...
mqtt_client.publish("Rover/Info", "Connected to Mqtt-Broker");