I had a ESP8266 running for 2 months with the pulse counter without any issues to measure the energy usage via TCRT5000 on a ferraris meter. (GPIO13, pulse low, 100ms debounce, MQTT each 60sek, total and time)
Now I've extented the ESP with a reed contakt to measure gas usage on GPIO14 (input_pullup, pulse high, debounce 100ms, MQTT 60s, total), which work also fine. But after a few hours properly working, one of the counters stops working and do not count any pulses. After warm rebooting, again both counters work again a few hours.
- I've already changed the GPIOs without any sucess.
- I've flashed the latest ESP_Easy_mega_20210802_normal_ESP8266_4M1M clean without importing any "old" config
- I've rebooted and unpluged the power supply a hundred times
- I've checked and tried to understand the logs and here I noticed a really strange behaviour.
Also I add a new task with a "input switch" on the same GPIO to read the status directly in ESP Easy. The logging is showing the change in high and low signal but the counter doesn't count or write something in the log.
After reboot and starting the log, all is working as expected but I've found out what caused this counter interruption.
Any help even just for a detailed debugging is much appreciated.