e2cf90d31834efe15f025902ec1e7843d5c2ac54,iot/api-client/mqtt_example/cloudiot_mqtt_image.py,,receive_image,#Any#Any#Any#Any#Any#,54

Before Change



    subscriber.subscribe(subscription_path, callback=callback)

    sleep_count = 0
    print("Listening for messages on {}".format(subscription_path))
    while sleep_count < duration:
        time.sleep(1)
        sleep_count = sleep_count + 1


def parse_command_line_args():
    Parse command line arguments.
    parser = argparse.ArgumentParser(description=(
            "Google Cloud IoT Core MQTT binary transmission demo."))

After Change


    print("Listening for messages on {}".format(subscription_path))
    finished = job_done.wait(timeout=timeout)
    if not finished:
        print("No event received before the timeout.")


def parse_command_line_args():
    Parse command line arguments.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: e2cf90d31834efe15f025902ec1e7843d5c2ac54
Time: 2020-04-20
Author: tmatsuo@google.com
File Name: iot/api-client/mqtt_example/cloudiot_mqtt_image.py
Class Name:
Method Name: receive_image


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: b92890a9f389909a81e6640d527e29a17ae1922f
Time: 2017-08-03
Author: jonwayne@google.com
File Name: speech/cloud-client/transcribe_async.py
Class Name:
Method Name: transcribe_gcs


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: b92890a9f389909a81e6640d527e29a17ae1922f
Time: 2017-08-03
Author: jonwayne@google.com
File Name: speech/cloud-client/transcribe_async.py
Class Name:
Method Name: transcribe_file