diff options
| -rw-r--r-- | mqttweightwatcher.ino | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/mqttweightwatcher.ino b/mqttweightwatcher.ino index 4e9cafb..77d3433 100644 --- a/mqttweightwatcher.ino +++ b/mqttweightwatcher.ino @@ -2,8 +2,6 @@ #include <MQTT.h> #include <HX711_ADC.h> -#undef DEBUG - String swarm_name = "ArcticMonkeys"; const char* ssid = "disasterarea"; @@ -107,10 +105,8 @@ void do_publish() { val = "0.00"; // do string compare to compare only two digits after the comma if (old_val != val) { - #ifdef DEBUG - Serial.print("Load_cell output val: "); - Serial.println(val); - #endif + Serial.print("weight: "); + Serial.println(val); old_val = val; MQTT.publish(String("/"+swarm_name+"/weight"), val); } |
