diff --git a/envisens/envisens_esp_fw/envisens_esp_fw.ino b/envisens/envisens_esp_fw/envisens_esp_fw.ino index 38c28c1..aef83a3 100644 --- a/envisens/envisens_esp_fw/envisens_esp_fw.ino +++ b/envisens/envisens_esp_fw/envisens_esp_fw.ino @@ -115,9 +115,10 @@ bool forcePublish = false; bool publish (String desc, char *topic, float val, float &lastVal, float diff, bool force){ bool retval = false; + Serial.println("Sample " + desc + ": " + String(val).c_str()); if (checkVariation(val, lastVal, diff) or force) { lastVal = val; - Serial.println("New " + desc + ": " + String(val).c_str()); + Serial.println("Sufficient variation on " + desc + ": " + String(val).c_str()); if (checkPlausibility(val, lastVal, diff) or force) { Serial.println("Value published"); client.publish(topic, String(val).c_str(), true);