Open pvtex opened 5 months ago
found the solution. first change the beginning of the yaml file:
substitutions:
devicename: jura-wifi
friendly_name: Jura-Wifi
device_description: Jura Coffee Machine
esphome:
name: $devicename
comment: ${device_description}
platformio_options:
upload_speed: 115200
includes:
- jura_coffee.h
esp32:
board: esp32dev
framework:
type: arduino
then i needed to edit the jura_coffee.h file: in the first line:
#include <esp_task_wdt.h>
#define WDT_TIMEOUT 20
and the new setup function
void setup() override {
this->set_update_interval(60000); // 600000 = 10 minutes // Now 60 seconds
esp_task_wdt_init(WDT_TIMEOUT, true); // enable panic so ESP32 restarts
esp_task_wdt_add(NULL); // add current thread to WDT watch
}
and the new loop function:
void loop() override {
delay(8);
esp_task_wdt_reset(); // Added to repeatedly reset the Watch Dog Timer
}
Hi,
i am trying to use the jura wifi dongle with the esp32 inside. when i use your code i get a watchdog timeout right after wifi scan has started. this happens a few time and then the esp32 starts in safe mode. what do i have to do to get the dongle running with your code?