diff --git a/src/main.cpp b/src/main.cpp index bcc9a2d..e862f16 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -96,8 +96,8 @@ void loop() mqttConnect(); - String dataToSend = String(millis()); // dataToSend could be a sensor reading instead - Serial.println(); + // String dataToSend = String(millis()); // dataToSend could be a sensor reading instead + String dataToSend = String(h, t); Serial.print("Publishing data: "); Serial.print(F("Humidity: ")); @@ -108,26 +108,8 @@ void loop() Serial.print(f); Serial.print(F("°C ")); Serial.println(F("°F")); - Serial.println(dataToSend); - mqttClient.publish(MQTT_TOPIC_NAME.c_str(), dataToSend.c_str()); - - - - - - - - - - - - - -} - - - +} \ No newline at end of file