Modifications

Sauter à la navigation Sauter à la recherche
241 octets ajoutés ,  27 avril 2025 à 20:25
Ligne 127 : Ligne 127 :  
==== setup_watchdog() ====
 
==== setup_watchdog() ====
   −
Abstract method that must be overrided in descendant class to activates the hardware Watchdog of the microcontroler. 2 seconds (2000 ms) may represent a good timing.
+
{{dbox-orange| Abstract method that must be overrided in descendant class}}
 +
 
 +
The setup_watchdog() methods activates the hardware Watchdog of the microcontroler. 2 seconds (2000 ms) may represent a good timing.  
    
Once activated, the feed_watchdog() must be called before the timeout occurs otherwise the microcontroler will reset.
 
Once activated, the feed_watchdog() must be called before the timeout occurs otherwise the microcontroler will reset.
   −
Remarks: the watchdog is automatically feeded at every iteration of the ''userloop''.
+
Remarks:
 +
* the watchdog is automatically feeded at every iteration of the ''userloop''.
 +
* do not block the ''userloop'' execution because it may timeout the watchdog
 +
* take care of the timing when using blocking function (like Ethernet request) because it may timeout the watchdog.
    
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
32 908

modifications

Menu de navigation