How to clear esp_timer memory?

Vivek@IoT
Posts: 1
Joined: Tue Mar 07, 2023 5:54 am

How to clear esp_timer memory?

Postby Vivek@IoT » 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

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: How to clear esp_timer memory?

Postby ESP_Sprite » Wed Mar 08, 2023 12:33 am

Sounds like you're using it correctly. What exactly crashes, can you give us a backtrace?

Who is online

Users browsing this forum: No registered users and 94 guests