Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7d16203

Browse filesBrowse files
noerogJon Wayne Parrott
authored andcommitted
Add region tags for getting config. (GoogleCloudPlatform#1301)
* Add region tags for getting config. * Update cloudiot_http_example.py * Update cloudiot_http_example.py
1 parent d6a7f6b commit 7d16203
Copy full SHA for 7d16203

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed

‎iot/api-client/http_example/cloudiot_http_example.py

Copy file name to clipboardExpand all lines: iot/api-client/http_example/cloudiot_http_example.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ def publish_message(
9797
@retry.Retry(
9898
predicate=retry.if_exception_type(AssertionError),
9999
deadline=_BACKOFF_DURATION)
100+
# [START iot_http_getconfig]
100101
def get_config(
101102
version, message_type, base_url, project_id, cloud_region, registry_id,
102103
device_id, jwt_token):
@@ -118,6 +119,7 @@ def get_config(
118119
raise AssertionError('Not OK response: {}'.format(resp.status_code))
119120

120121
return resp
122+
# [END iot_http_getconfig]
121123

122124

123125
def parse_command_line_args():

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.