Table Of Contents

Previous topic

ginsfsm.examples.ontimer

Next topic

ginsfsm.examples.ongconnex

ginsfsm.examples.ongsock

GObj OnGSock

Utility for check ginsfsm.c_sock.GSock.

Connect to an url, get /, and disconnect, periodically.

class ginsfsm.examples.essential_gobjs.ongsock.OnGSock[source]

OnGSock GObj.

Configurable Parameters:
Name Type Default value Description
seconds int 5 Seconds to repeat the connection.
url str www.google.com Url to connect.
verbose int 0 Increase output verbosity. Values [0,1,2]
Diagram:

Input-Events:

  • 'EV_TIMEOUT': Timer over.

    Start the machine.

  • 'EV_CONNECTED': Connected to url.

  • 'EV_DISCONNECTED': Disconnected from url.

  • 'EV_RX_DATA': Receiving data from url.

  • 'EV_TRANSMIT_READY': Url ready to transmit it data.

Output-Events:

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

Initialization zone.