Module zio :: Class Agent

Class Agent

object --+
         |
        Agent

Agent class is used to talk to agent program running in the ZIO board. The class implements the agent communication protocol.
Instance Methods
 
__init__(self, device)
Constructs an Agent object.
 
close(self)
Cleans up resources allocated by the object.
 
do_op(self, module, index, op, *bytes)

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties
  debug
Enable/disable debugging information

Inherited from object: __class__

Method Details

__init__(self, device)
(Constructor)

 
Constructs an Agent object. The device through which the agent is to be accessed is to be specified. In *nix systems, a device file like /dev/ttySx or /dev/ttyUSBx is to be specified. In Windows, the COM port name is to be specified.
Parameters:
  • device (int) - the device through which agent is to be accessed
Raises:
Overrides: object.__init__

close(self)

 
Cleans up resources allocated by the object. Specifically closes the serial interface.

Property Details

debug

Enable/disable debugging information
Get Method:
_get_debug(self)
Set Method:
_set_debug(self, state)