Modifications

Sauter à la navigation Sauter à la recherche
241 octets ajoutés ,  29 avril 2025 à 00:11
Ligne 151 : Ligne 151 :  
==== task_setup(): bool ====
 
==== task_setup(): bool ====
   −
xxx
+
The overriden task_setup() is used to append the following tasks:
−
async def __coro_ds18b20( self )
+
# The __coro_ds18b20 task to read the temperature sensor every 10 seconds (if has_ds18b20==True) and store the value.
−
async def __coro_monitor( self ):
+
# The __coro_monitor task to check the internal MCU temperature every 60 seconds. Over-temperature will reset the microcontroler.
    
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
 
def tasks_setup( self, async_evloop ):
 
def tasks_setup( self, async_evloop ):
 
</syntaxhighlight>
 
</syntaxhighlight>
−
  −
      
==== before_run(): bool ====
 
==== before_run(): bool ====
32 908

modifications

Menu de navigation