Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pip install xbee
- #! /usr/bin/python
- # Import and init an XBee device
- from xbee import XBee,ZigBee
- import serial
- ser = serial.Serial('/dev/ttyUSB0', 9600)
- # Use an XBee 802.15.4 device
- # To use with an XBee ZigBee device, replace with:
- #xbee = ZigBee(ser)
- xbee = XBee(ser)
- # Set remote DIO pin 2 to low (mode 4)
- xbee.remote_at(
- dest_addr='x56x78',
- command='D2',
- parameter='x04')
- xbee.remote_at(
- dest_addr='x56x78',
- command='WR')
- ImportError: cannot import name Xbee
- pip search xbee
- egenix-mx-base - eGenix mx Base Distribution for Python -
- mxDateTime, mxTextTools, mxProxy, mxTools,
- mxBeeBase, mxStack, mxQueue, mxURL, mxUID
- XBee - Python tools for working with XBee radios
- INSTALLED: 2.1.0 (latest)
- hachi - XBee API
- txXBee - XBee Protocol for Twisted
- pyctu - A curses interface to configure xbees
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement