Module Expr Str ImportFrom alias ImportFrom alias Import alias Import alias Assign NameStore Str Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Print Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Print Str SubscriptLoad NameLoad Index Str decorator_list Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Lambda arguments args NameParam defaults CompareEq SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad Lambda arguments args NameParam defaults CompareEq SubscriptLoad NameLoad Index Str Str Assign NameStore Call NameLoad NameLoad keyword AttributeLoad NameLoad attr While NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr Num handlers ExceptHandler type NameLoad body Break Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr
N/A N/A 
dispatch_async.py

By Paul Malmsten, 2010
pmalmsten@gmail.com

This example continuously reads the serial port and dispatches packets
which arrive to appropriate methods for processing in a separate thread.
 xbee XBee xbee.helpers.dispatch Dispatch N/A time N/A serial N/A PORT /dev/ttyUSB0 N/A BAUD_RATE 9600 N/A ser N/A N/A serial Serial PORT BAUD_RATE status_handler N/A N/A name packet N/A N/A N/A Status Update - Status is now:  N/A packet N/A status N/A io_sample_handler N/A N/A name packet N/A N/A N/A Samples Received:  N/A packet N/A samples N/A N/A dispatch N/A Dispatch ser N/A N/A N/A dispatch register status status_handler N/A N/A N/A packet N/A N/A N/A packet N/A id status N/A N/A N/A dispatch register io_data io_sample_handler N/A N/A N/A packet N/A N/A N/A packet N/A id rx_io_data N/A xbee N/A XBee ser callback N/A dispatch dispatch N/A True N/A N/A N/A N/A N/A N/A time sleep 0.1 N/A N/A N/A KeyboardInterrupt N/A N/A N/A N/A N/A xbee halt N/A N/A N/A ser close