niolabs / python-xbee

Python tools for working with XBee radios
MIT License
101 stars 45 forks source link

re-added an optional timeout for wait_read_frame, as in @thom-nic 's … #62

Closed XYR010 closed 6 years ago

XYR010 commented 6 years ago

this re-adds lost support for a timeout in wait_read_frame and is based on @thom-nic 's version of python-xbee, the timeout only raises a TimeoutException before a frame-Startbyte is received

XYR010 commented 6 years ago

One could probably test the timeout working as expected like:

try:
    xbee.wait_read_frame(1)
except TimeoutException:
    #success

doesn't test for unwanted timeouts though...

bp1222 commented 6 years ago

Looks good to me, changed base to non-master locally for adding the tornado end.