def find(self, args=None): """ Try to find IPX800 relay boards """ # Init IPX ipx = IPX(self._log, None, None) # Find boards data = [] data.append("List of all IPX800 boards found :") try: for ipx in ipx.find(): data.append("%s : %s" % (ipx[0], ipx[1])) except IPXException as err: return [err.value] print(data) return data
def find(self, args = None): """ Try to find IPX800 relay boards """ # Init IPX ipx = IPX(self._log, None, None) # Find boards data = [] data.append("List of all IPX800 boards found :") try: for ipx in ipx.find(): data.append("%s : %s" % (ipx[0], ipx[1])) except IPXException as err: return [err.value] print(data) return data