Public Member Functions | Public Attributes
xbee.helpers.dispatch.dispatch.Dispatch Class Reference

List of all members.

Public Member Functions

def __init__
def dispatch
def register
def run

Public Attributes


Detailed Description

Definition at line 14 of file

Constructor & Destructor Documentation

def xbee.helpers.dispatch.dispatch.Dispatch.__init__ (   self,
  ser = None,
  xbee = None 

Definition at line 15 of file

Member Function Documentation

dispatch: XBee data dict -> None

When called, dispatch checks the given packet against each 
registered callback method and calls each callback whose filter 
function returns true.

Definition at line 63 of file

def xbee.helpers.dispatch.dispatch.Dispatch.register (   self,
register: string, function: string, data -> None, function: data -> boolean -> None

Register will save the given name, callback, and filter function
for use when a packet arrives. When one arrives, the filter
function will be called to determine whether to call its associated
callback function. If the filter method returns true, the callback
method will be called with its associated name string and the packet
which triggered the call.

Definition at line 25 of file

def (   self,
  oneshot = False 
run: boolean -> None

run will read and dispatch any packet which arrives from the 
XBee device

Definition at line 47 of file

Member Data Documentation

Definition at line 15 of file

Definition at line 15 of file

Definition at line 15 of file

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

Author(s): Adam Stambler
autogenerated on Fri Dec 6 2013 20:35:49