diff --git a/src/main.ino b/src/main.ino index 524d98a..c8c83e8 100644 --- a/src/main.ino +++ b/src/main.ino @@ -9,7 +9,7 @@ #define CHARGE_PIN 5 #define MEASURING_PIN 36 #define RESISTOR_VALUE 1e6 -#define MQTT_SERVER "test.mosquitto.org" +#define MQTT_SERVER "mqtt.ammar.engineer" #define MQTT_PORT 1883 #define MQTT_TOPIC_CAPCITANCE "pipe_system/capacitance" #define DEVICE_ID "PIPE_01" @@ -80,7 +80,6 @@ float capacitance(int discharge_pin, int charge_pin, int measuring_pin) { elapsed_time = millis() - start_time; nanoFarads = ((float)elapsed_time / RESISTOR_VALUE) * 1e6; Serial.println((long) nanoFarads); - delay(1000); return nanoFarads; };