Porting code to IDF
Posted: Wed Dec 06, 2023 3:51 pm
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?
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);