A mettre dans interfaces_type_001.
une variable timer :
- etat du timer (actif/arrêté)
- fréquence de déclanchement (toutes les x secondes)
- dernière execution
- autorearmement (oui/non)
testTimer()
Si timer actif
Si courrant - dernière excecution > fréquence
lancer la commande
si autorearmement
etat du timer = actif
dernière execution = maintenant
sinon
etat du timer = arrêté
CreerTimer()
dernière excéution = 0
état du timer = arrêté
LancerTimer()
dernière exécution = maintenant
état du timer= lancé
ArrêterTimer()
état du timer = arrêté
dernière exécution = 0
Original issue reported on code.google.com by patrice....@gmail.com on 8 Jul 2013 at 11:59
Original issue reported on code.google.com by
patrice....@gmail.com
on 8 Jul 2013 at 11:59