python
Page last updated 30 May 2013, by .
0
replies
Information
- Python27
- XBee-2.1.0
- python Japan : http://www.python.jp/
- python-xbee : http://code.google.com/p/python-xbee/
- pySerial : http://pyserial.sourceforge.net/index.html
- xbee-api : http://code.google.com/p/xbee-api/
- java : http://sunjava.seesaa.net/category/3474935-1.html
XBee-2.1.0\build\lib\xbee\base.py
:
#def __init__(self, ser, shorthand=True, callback=None, escaped=False):
def __init__(self, ser, shorthand=True, callback=None, escaped=True):
:
XBee-2.1.0\examples\receive_samples.py
:
response = xbee.wait_read_frame()
print response
data1 = response['rf_data']
s0 = data1[0:4]
s = binascii.b2a_hex(s0)
print s
:
Please log in to post comments.
