niolabs / python-xbee

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

Modify examples/receive_sample.py to avoid error #5

Closed yuchenglin closed 8 years ago

hansmosh commented 8 years ago

@yuchenglin What hardware are you using? When using an XBee, the example should work as is. If you're using some other ZigBee device, then yes, you will need to update the example for your specific hardware, but we want the default behavior of the examples to be for XBee.

# Use an XBee 802.15.4 device
# To use with an XBee ZigBee device, replace with:
#xbee = ZigBee(ser)
xbee = XBee(ser)

https://github.com/nioinnovation/python-xbee#xbee

yuchenglin commented 8 years ago

I use XBee S2. I found it's a ZigBee device, and series 1 is 802.15.4 device. Then it makes sense. Thanks for your reply.

hansmosh commented 8 years ago

Glad that makes sense. I've only recently taken over the management of this repository, but you're not the first person to point out that ZigBee is needed for XBee S2. Sounds like it could be more clear that that's the case.