@@ -12,7 +12,7 @@
#define ENABLE_KWH_COUNTER
#define ENABLE_DS18B20
-//#define MQTT_DEBUG // Add an extra debug string to the topic-string
+#define MQTT_DEBUG // Add an extra debug string to the topic-string
#define VVB_RELAY_OUTPUT_IO GPIO_NUM_22 // Output GPIO of a relay control of VVB
@@ -37,6 +37,8 @@ void counterControlTask(void *pvParameters) {
if( activeCnt > 0 ) kWh_cnt++;
+ ESP_LOGI("kWhCounter", "1s Pin: %u Tot:%u", activeCnt, kWh_cnt);
+
if( ++secondCnt == 60 ) {
// Every 60 seconds
ESP_LOGI("kWhCounter", "60 sec. Measure. Pin: %u Tot:%u", activeCnt, kWh_cnt);