Page 1 of 1

Schedule that runs only some seconds ?

Posted: Mon Jul 22, 2024 8:51 pm
by Lifetechnicolor
It is possible somehow to create s schedule that activates a pin only for some seconds ?
Can this be achieved on rainmaker or via code?

Like activate an output and have it on only for 15 seconds ?

Thank you

Re: Schedule that runs only some seconds ?

Posted: Tue Jul 23, 2024 7:07 pm
by ESP_Piyush
You can create a schedule with 2 parameters, like say "gpio_state" and "timeout" and in your callback create a timer as per the timeout received. Let us know if that would work for you.

Re: Schedule that runs only some seconds ?

Posted: Sun Jul 28, 2024 1:03 pm
by Lifetechnicolor
Hi, thank you for your feedback, how can I add parameters to schedule? I don't find it on the app

Re: Schedule that runs only some seconds ?

Posted: Fri Aug 02, 2024 6:25 am
by ESP_Piyush
Parameter settings will be under "Actions" in schedules. Did you check there? Also, schedules need to be explicitly enabled in the firmware. They are enabled by default in all examples using esp_rmaker_schedule_enable(). Please ensure that your project has the same.