Introducing the Official Digi XBee Python Library

Rob Faludi Rob Faludi, IoT Consultant, Faludi.com
November 06, 2017
When you're developing connected applications, as we all know, time is of the essence. You need tools and resources, like Python® code libraries, that you can leverage to expedite prototyping and development of your project to meet your timeline and get to market. For this reason, Digi is devoted to supporting developers on their journey and ensuring they have everything needed to ensure success.

Python developers just got more help in creating solutions with Digi XBee® modules. In order to make it as simple as possible to write XBee applications, Digi released an official Digi XBee Python Library. This library supports multiple Digi XBee protocols including LTE-M/NB-IoT, Zigbee, 802.15.4, DigiMesh, Point-to-Multipoint and Wi-Fi.

The open-source project includes all the Python code, multiple examples that show how to use the available APIs and a collection of functional tests. Main features of the Python library include:
  • Support for ZigBee, 802.15.4, DigiMesh, Point-to-Multipoint, Wi-Fi, Cellular and NB-IoT devices.
  • Support for API and API escaped operating modes.
  • Management of local (attached to the PC) and remote XBee device objects.
  • Discovery of remote XBee devices associated with the same network as the local device.
  • Configuration of local and remote XBee devices:
  • Transmission of data to all the XBee devices on the network or to a specific device.
  • Reception of data from remote XBee devices:
  • Transmission and reception of IP and SMS messages.
  • Reception of network status changes related to the local XBee device.
  • IO lines management:
  • Support for explicit frames and application layer fields (Source endpoint, Destination endpoint, Profile ID, and Cluster ID).
  • Multiple examples that show how to use the available APIs.
So whether you're designing an intelligent lighting application, monitoring industrial storage tanks, creating smart agriculture sensor networks, or running orbital experiments, Python developers no longer have to start from scratch.

Need help planning, designing and developing your next big project? Digi Wireless Design Services can help.

Learn About Large IoT Deployments
Watch our video - Five Things You Should Know About Deploying 50,000 Devices