Page 1 of 1

Porting code to IDF

Posted: Wed Dec 06, 2023 3:51 pm
by Achim Pieters
Hi All,

I'm trying to port some old code to IDF V5.x but cant find the solution? It's not in the documentation off IDF online, so maybe someone here knows how to resolve this?

Code: Select all

ETSTimer new_timer;

sdk_os_timer_disarm(&new_timer);
sdk_os_timer_setfn(&new_timer, relay_timeout, NULL);

 sdk_os_timer_disarm(&new_timer);
 sdk_os_timer_arm(&new_timer, relay_period * 1000, 0);

Re: Porting code to IDF

Posted: Thu Dec 07, 2023 12:59 am
by ESP_Sprite
https://docs.espressif.com/projects/esp ... timer.html is available for all your timing needs :)

Re: Porting code to IDF

Posted: Sun Dec 10, 2023 9:02 am
by MicroController
;) :D