Schedule that runs only some seconds ?

Lifetechnicolor
Posts: 2
Joined: Mon Jul 22, 2024 8:48 pm

Schedule that runs only some seconds ?

Postby Lifetechnicolor » Mon Jul 22, 2024 8:51 pm

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

ESP_Piyush
Posts: 309
Joined: Wed Feb 20, 2019 7:02 am

Re: Schedule that runs only some seconds ?

Postby ESP_Piyush » Tue Jul 23, 2024 7:07 pm

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.

Lifetechnicolor
Posts: 2
Joined: Mon Jul 22, 2024 8:48 pm

Re: Schedule that runs only some seconds ?

Postby Lifetechnicolor » Sun Jul 28, 2024 1:03 pm

Hi, thank you for your feedback, how can I add parameters to schedule? I don't find it on the app

ESP_Piyush
Posts: 309
Joined: Wed Feb 20, 2019 7:02 am

Re: Schedule that runs only some seconds ?

Postby ESP_Piyush » Fri Aug 02, 2024 6:25 am

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.

Who is online

Users browsing this forum: No registered users and 73 guests