XBee API

The digidevice.xbee Python module offers the get_device function for accessing the internal XBee device of your IX15.

def get_device(timeout: int = -1) -> XBeeDevice

This function returns a representation of the XBee device in the IX15. This object class is defined in the XBee Python Library, and depends on the protocol your XBee is using:

Example: Get local XBee instance
from digidevice import xbee

local_xbee = xbee.get_device()

Once the local XBee of the IX15 is retrieved, you can work with it using the XBee Python Library API that is integrated into the gateway firmware:

Note See the Digi XBee Python Library project online for additional documentation.