Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e44c60 commit 8ade7ddCopy full SHA for 8ade7dd
iot/api-client/manager/manager.py
@@ -704,17 +704,8 @@ def list_devices_for_gateway(
704
device.get('numId'),
705
device.get('id')))
706
707
- if devices.get('deviceNumIds') is not None:
708
- for device_id in devices.get('deviceNumIds'):
709
- device_name = '{}/devices/{}'.format(
710
- registry_name, device_id)
711
- device = client.projects().locations().registries().devices().get(
712
- name=device_name).execute()
713
- print('Id: {}\n\tName: {}\n\traw: {}'.format(
714
- device_id, device.get('id'), device))
715
- else:
716
- if not found:
717
- print('No devices bound to gateway {}'.format(gateway_id))
+ if not found:
+ print('No devices bound to gateway {}'.format(gateway_id))
718
# [END iot_list_devices_for_gateway]
719
720
0 commit comments