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
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 XBeeAIO.ADDRESS_TABLE: probe_data['address_table'].append(address) for product in XBeeAIO.SUPPORTED_PRODUCTS: probe_data['supported_products'].append(product) return probe_data
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
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' """ self._tracer.calls('WirelessSensor Probe called') probe_data = XBeeBase.probe() for address in WirelessSensor.ADDRESS_TABLE: probe_data['address_table'].append(address) for product in WirelessSensor.SUPPORTED_PRODUCTS: probe_data['supported_products'].append(product) return probe_data