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?
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