digi.xbee.util.exportutils module

digi.xbee.util.exportutils.generate_network_xml(xbee, date_now=None, name=None, desc=None)[source]

Generates the XML hierarchy representing the network of the given XBee.

Parameters:
  • xbee (XBeeDevice) – Local XBee node.

  • ( (date_now) – class: datetime.datetime, optional, default=`None`): Date to set in the XML.

  • name (String, optional, default=`None`) – Human readable network name.

  • desc (String, optional, default=`None`) – Description of the network.

Returns:

Generated XML hierarchy.

Return type:

xml.etree.ElementTree.ElementTree