Modifications

Sauter à la navigation Sauter à la recherche
767 octets ajoutés ,  27 avril 2025 à 21:07
Ligne 156 : Ligne 156 :  
def feed_watchdog( self ):
 
def feed_watchdog( self ):
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
==== task_setup() ====
 +
 +
{{dbox-orange| Overridable method}}
 +
 +
This method setup the ''userloop'' then calls the {{fname|on_task_create}} event (when provided to the {{fname|setup()}} method.
 +
 +
That method is usually overrided in descendant class to append Controler specific tasks (eg: the PicoControler append monitoring and ds18b20 tasks).
 +
 +
<syntaxhighlight lang="python">
 +
def tasks_setup( self, async_evloop ):
 +
</syntaxhighlight>
 +
 +
{{Ambox
 +
| type      = delete
 +
| image      = [[File:StopHand.png|40px|alt=Stop]]
 +
| textstyle  = color: red; font-weight: bold; font-style: italic;
 +
| text      = Do not confuse the override operation (used by subclass to create their tasks) with the {{fname|on_task_create}} event allowing the user code to create their own tasks. }}
32 908

modifications

Menu de navigation