How to clear esp_timer memory?
Posted: Tue Mar 07, 2023 6:10 am
esp_timer_create(&retry_count_timer_args, &retry_count_timer);
esp_timer_start_once(retry_count_timer, retry_count_time_us);
I created a timer using the above two functions and then after the timer expires I want to free the memory of the timer.
I used the following function but it is causing the program to crash.
esp_timer_stop(retry_count_timer));
esp_timer_delete(retry_count_timer);
Please let me know if I am doing something wrong. Thank you