Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions iot/api-client/mqtt_example/cloudiot_mqtt_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,11 @@ def mqtt_device_demo(args):
def main():
args = parse_command_line_args()

if args.command.startswith('gateway'):
if (args.gateway_id is None):
print('Error: For gateway commands you must specify a gateway ID')
return

if args.command == 'gateway_listen':
listen_for_messages(
args.service_account_json, args.project_id,
Expand Down
1 change: 1 addition & 0 deletions iot/api-client/mqtt_example/cloudiot_mqtt_example_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ def test_gateway_listen_for_bound_device_configs(test_topic, capsys):
assert 'Received message' in out


@flaky
def test_gateway_send_data_for_device(test_topic, capsys):
gateway_id = device_id_template.format('RS256')
device_id = device_id_template.format('noauthbind')
Expand Down