Skip to content

Commit 432fbf5

Browse files
authored
Payload has gcs_file_name field, not config_name.
1 parent cd85094 commit 432fbf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iot/api-client/gcs_file_to_device/gcs_example_mqtt_device.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def on_message(self, unused_client, unused_userdata, message):
125125
print('Received new config.')
126126
bucket_name = data['bucket_name']
127127
print('Bucket name is: \'{}\''.format(bucket_name))
128-
config_name = data['config_name']
128+
config_name = data['gcs_file_name']
129129
print('Config name is: \'{}\''.format(config_name))
130130
# Destination file name is a byte literal because it's a file
131131
# name.

0 commit comments

Comments
 (0)