Table Of Contents

Previous topic

Examples

Next topic

ginsfsm.examples.ongsock

ginsfsm.examples.ontimer

GObj OnTimer

Utility for executing a command cyclically each seconds seconds.

The timer is supplied by ginsfsm.c_timer.GTimer.

Dependencies:

class ginsfsm.examples.essential_gobjs.ontimer.OnTimer[source]

OnTimer GObj.

Configurable Parameters:
Name Type Default value Description
seconds int 2 Seconds to repeat the command.
command str ls Command to execute.
verbose int 0 Increase output verbosity. Values [0,1,2]
Diagram:

Input-Events:

  • 'EV_TIMEOUT': Timer over.

    Execute the command.

Output-Events:

  • 'EV_START_TIMER': Start timer.
start_up()[source]