本文整理汇总了Python中devices.xbee.xbee_devices.xbee_base.XBeeBase.probe方法的典型用法代码示例。如果您正苦于以下问题:Python XBeeBase.probe方法的具体用法?Python XBeeBase.probe怎么用?Python XBeeBase.probe使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类devices.xbee.xbee_devices.xbee_base.XBeeBase
的用法示例。
在下文中一共展示了XBeeBase.probe方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: probe
# 需要导入模块: from devices.xbee.xbee_devices.xbee_base import XBeeBase [as 别名]
# 或者: from devices.xbee.xbee_devices.xbee_base.XBeeBase import probe [as 别名]
def probe():
"""\
Collect important information about the driver.
.. Note::
* This method is a static method. As such, all data returned
must be accessible from the class without having a instance
of the device created.
Returns a dictionary that must contain the following 2 keys:
1) address_table:
A list of XBee address tuples with the first part of the
address removed that this device might send data to.
For example: [ 0xe8, 0xc105, 0x95 ]
2) supported_products:
A list of product values that this driver supports.
Generally, this will consist of Product Types that
can be found in 'devices/xbee/common/prodid.py'
"""
probe_data = XBeeBase.probe()
for address in XBeeSerialTerminal.ADDRESS_TABLE:
probe_data['address_table'].append(address)
for product in XBeeSerialTerminal.SUPPORTED_PRODUCTS:
probe_data['supported_products'].append(product)
return probe_data
示例2: probe
# 需要导入模块: from devices.xbee.xbee_devices.xbee_base import XBeeBase [as 别名]
# 或者: from devices.xbee.xbee_devices.xbee_base.XBeeBase import probe [as 别名]
def probe():
# Collect important information about the driver.
#
# .. Note::
#
# This method is a static method. As such, all data returned
# must be accessible from the class without having a instance
# of the device created.
#
# Returns a dictionary that must contain the following 2 keys:
# 1) address_table:
# A list of XBee address tuples with the first part of the
# address removed that this device might send data to.
# For example: [ 0xe8, 0xc105, 0x95 ]
# 2) supported_products:
# A list of product values that this driver supports.
# Generally, this will consist of Product Types that
# can be found in 'devices/xbee/common/prodid.py'
probe_data = XBeeBase.probe()
for address in ZigBeeTransferDevice.ADDRESS_TABLE:
probe_data['address_table'].append(address)
for product in ZigBeeTransferDevice.SUPPORTED_PRODUCTS:
probe_data['supported_products'].append(product)
return probe_data