LIRC libraries
Linux Infrared Remote Control
Loading...
Searching...
No Matches

Command, parser and connection container with a run() method. More...

Inheritance diagram for lirc.client.Command:
lirc.client.CodeCommand lirc.client.DrvOptionCommand lirc.client.GetModeCommand lirc.client.IdentCommand lirc.client.ListKeysCommand lirc.client.ListRemotesCommand lirc.client.SendCommand lirc.client.SetLogCommand lirc.client.SetModeCommand lirc.client.SetTransmittersCommand lirc.client.SimulateCommand lirc.client.StartRepeatCommand lirc.client.StopRepeatCommand lirc.client.VersionCommand

Public Member Functions

 __init__ (self, str cmd, AbstractConnection connection, float timeout=0.4)
 run (self, float timeout=None)
 Run the command and return a Reply.

Protected Attributes

 _conn = connection
 _cmd_string = cmd
 _parser = ReplyParser()

Detailed Description

Command, parser and connection container with a run() method.

Definition at line 389 of file client.py.

Constructor & Destructor Documentation

◆ __init__()

lirc.client.Command.__init__ ( self,
str cmd,
AbstractConnection connection,
float timeout = 0.4 )

Definition at line 391 of file client.py.

Member Function Documentation

◆ run()

lirc.client.Command.run ( self,
float timeout = None )

Run the command and return a Reply.

Timeout as of AbstractConnection.readline()

Definition at line 401 of file client.py.

Member Data Documentation

◆ _cmd_string

lirc.client.Command._cmd_string = cmd
protected

Definition at line 395 of file client.py.

◆ _conn

lirc.client.Command._conn = connection
protected

Definition at line 394 of file client.py.

◆ _parser

lirc.client.Command._parser = ReplyParser()
protected

Definition at line 396 of file client.py.


The documentation for this class was generated from the following file:
  • /builddir/build/BUILD/lirc-0.10.0-build/lirc-0.10.0/python-pkg/lirc/client.py