def devices(self):
devices = []<EOL>count = self.lib.tdGetNumberOfDevices()<EOL>for i in range(count):<EOL><INDENT>device = DeviceFactory(self.lib.tdGetDeviceId(i), lib=self.lib)<EOL>devices.append(device)<EOL><DEDENT>return devices<EOL>
Return all known devices.

        :return: list of :class:`Device` or :class:`DeviceGroup` instances.