daniel-jong / esp8266_p1meter

DSMR5 P1 meter to mqtt using esp8266
GNU General Public License v3.0
145 stars 54 forks source link

Question about reason for ESP.wdtDisable/Enable #42

Open ajongen opened 1 month ago

ajongen commented 1 month ago

Hi Daniel,

I used your code as the basis for my P1 reader based on an ESP01S. After some electronic hick ups it now works like a charm! One thing that I do not really understand in the code (and I do not see simular approaches in other implementations) is the fact that in the read_p1_hardwareserial you disable and after reading enable the ESP (software) watchdog. I commented these lines and the reader still works perfectly fine (for now). What was the reason for you to include this in the code? What potential problem do I face not doing this?

Thanks for the info and for sharing this project!

Cheers, Armand