taks / esp32-nimble

A wrapper for the ESP32 NimBLE Bluetooth stack.
Apache License 2.0
118 stars 35 forks source link

ble server example watchdog #11

Closed Lance-Kraakman closed 1 year ago

Lance-Kraakman commented 1 year ago

Hi just a quick question,

Why is the watchdog timer turned off in the ble server example? Also i'm happy to work on any minor tasks if you guys need something done!

Thanks!

taks commented 1 year ago

Sorry for the confusion.

I was turning off the watchdog because I was using esp_idf_hal::delay::Ets::delay_ms inside the loop. ( esp_idf_hal::delay::Ets::delay_ms does not clear the watchdog timer. )

I remove the code to turn off the watchdog timer by using esp_idf_hal::delay::FreeRtos::delay_ms which clears the watchdog timer.

Lance-Kraakman commented 1 year ago

No worries :) thank you!