I have a project for watering plants using a LilyGo Soldered pin S3 board no touch screen.
The board should stay on forever. Every hr it should turn a water pump on. Every minute it sends a mqtt message to a public broker.hivemq.com:1883 broker. The project works well.
The problem is that every some Hrs the board suddenly stops working. It does not turn on the water pump and it does not send the mqtt message.
Doing a google I found that this is a recurring problems with device boards, specially ESP32. There is a solution for that which is called watchdog . This is a kind of application that reboot the processor in each x time (seconds, minutes or hrs).
I have a project for watering plants using a
LilyGo Soldered pin S3 board no touch screen
.The board should stay on forever. Every hr it should turn a water pump on. Every minute it sends a mqtt message to a public
broker.hivemq.com:1883
broker. The project works well.The problem is that every some Hrs the board suddenly stops working. It does not turn on the water pump and it does not send the mqtt message.
Doing a google I found that this is a recurring problems with device boards, specially
ESP32
. There is a solution for that which is calledwatchdog
. This is a kind of application that reboot the processor in each x time (seconds, minutes or hrs).I found this solution for ESP32 which is not working , maybe because it is not for
ESP32-S3
-> https://iotassistant.io/esp32/enable-hardware-watchdog-timer-esp32-arduino-ide/This is the code that I have
And this is the output that I am getting
That means the watchdog code is breaking the process.
Does someone knows what is the issue here? How to fix that?