Taskrun in rules

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Patou
Normal user
Posts: 106
Joined: 21 May 2018, 10:33

Taskrun in rules

#1 Post by Patou » 01 Dec 2019, 17:22

Hello friends,
I am using actually ESP_Easy_mega-20191116_normal_ESP8266_4M1M.bin
I increment/decrement a setpoint by push button Up and Down in var 1
I also display this set point on Oled Frame display
The refresh rate of the display is set to 30 sec because it shows temperature data
But when setpoint is changed by Up / down it should refresh display immediately.
I wanted to use Taskrun command in rules like this

Code: Select all

On Up#State=1 do
 if [var#1]<=[Var#7] // compare if not above max value
 let,1,[var#1]+0.5
 taskrun,8
 endif
endon
But this command reboot the esp ?
If I give this command in the command line no reboot

Of course I can program refresh rate of display every sec but this consume cpu ressource
Is this a possible bug ?
Patou

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Taskrun in rules

#2 Post by grovkillen » 01 Dec 2019, 18:07

Sounds like a bug
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Patou
Normal user
Posts: 106
Joined: 21 May 2018, 10:33

Re: Taskrun in rules

#3 Post by Patou » 01 Dec 2019, 18:25

Should I open an issues in Github ?

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Taskrun in rules

#4 Post by grovkillen » 01 Dec 2019, 19:58

Yes, please do.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests