Public Member Functions | Public Attributes | List of all members
xbee.tests.Fake.FakeReadDevice Class Reference

Public Member Functions

def __init__ (self, data, silent_on_empty=False)
 
def inWaiting (self)
 
def read (self, length=1)
 

Public Attributes

 data
 
 read_index
 
 silent_on_empty
 

Detailed Description

Represents a fake serial port which can be read from in a similar
fashion to the real thing

Definition at line 25 of file Fake.py.

Constructor & Destructor Documentation

def xbee.tests.Fake.FakeReadDevice.__init__ (   self,
  data,
  silent_on_empty = False 
)

Definition at line 31 of file Fake.py.

Member Function Documentation

def xbee.tests.Fake.FakeReadDevice.inWaiting (   self)
Returns the number of bytes available to be read

Definition at line 52 of file Fake.py.

def xbee.tests.Fake.FakeReadDevice.read (   self,
  length = 1 
)
Read the indicated number of bytes from the port

Definition at line 36 of file Fake.py.

Member Data Documentation

xbee.tests.Fake.FakeReadDevice.data

Definition at line 32 of file Fake.py.

xbee.tests.Fake.FakeReadDevice.read_index

Definition at line 33 of file Fake.py.

xbee.tests.Fake.FakeReadDevice.silent_on_empty

Definition at line 34 of file Fake.py.


The documentation for this class was generated from the following file:


rosserial_xbee
Author(s): Adam Stambler
autogenerated on Mon Jun 10 2019 14:53:52